summaryrefslogtreecommitdiffstats
path: root/cc/image_layer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/image_layer.cc')
-rw-r--r--cc/image_layer.cc42
1 files changed, 21 insertions, 21 deletions
diff --git a/cc/image_layer.cc b/cc/image_layer.cc
index 7352328..cd6e98d 100644
--- a/cc/image_layer.cc
+++ b/cc/image_layer.cc
@@ -17,13 +17,13 @@ class ImageLayerTextureUpdater : public LayerTextureUpdater {
public:
class Texture : public LayerTextureUpdater::Texture {
public:
- Texture(ImageLayerTextureUpdater* textureUpdater, scoped_ptr<CCPrioritizedTexture> texture)
+ Texture(ImageLayerTextureUpdater* textureUpdater, scoped_ptr<PrioritizedTexture> texture)
: LayerTextureUpdater::Texture(texture.Pass())
, m_textureUpdater(textureUpdater)
{
}
- virtual void update(CCTextureUpdateQueue& queue, const IntRect& sourceRect, const IntSize& destOffset, bool partialUpdate, CCRenderingStats&) OVERRIDE
+ virtual void update(TextureUpdateQueue& queue, const IntRect& sourceRect, const IntSize& destOffset, bool partialUpdate, RenderingStats&) OVERRIDE
{
textureUpdater()->updateTexture(queue, texture(), sourceRect, destOffset, partialUpdate);
}
@@ -40,12 +40,12 @@ public:
}
virtual scoped_ptr<LayerTextureUpdater::Texture> createTexture(
- CCPrioritizedTextureManager* manager) OVERRIDE
+ PrioritizedTextureManager* manager) OVERRIDE
{
- return scoped_ptr<LayerTextureUpdater::Texture>(new Texture(this, CCPrioritizedTexture::create(manager)));
+ return scoped_ptr<LayerTextureUpdater::Texture>(new Texture(this, PrioritizedTexture::create(manager)));
}
- void updateTexture(CCTextureUpdateQueue& queue, CCPrioritizedTexture* texture, const IntRect& sourceRect, const IntSize& destOffset, bool partialUpdate)
+ void updateTexture(TextureUpdateQueue& queue, PrioritizedTexture* texture, const IntRect& sourceRect, const IntSize& destOffset, bool partialUpdate)
{
// Source rect should never go outside the image pixels, even if this
// is requested because the texture extends outside the image.
@@ -78,21 +78,21 @@ private:
SkBitmap m_bitmap;
};
-scoped_refptr<ImageLayerChromium> ImageLayerChromium::create()
+scoped_refptr<ImageLayer> ImageLayer::create()
{
- return make_scoped_refptr(new ImageLayerChromium());
+ return make_scoped_refptr(new ImageLayer());
}
-ImageLayerChromium::ImageLayerChromium()
- : TiledLayerChromium()
+ImageLayer::ImageLayer()
+ : TiledLayer()
{
}
-ImageLayerChromium::~ImageLayerChromium()
+ImageLayer::~ImageLayer()
{
}
-void ImageLayerChromium::setBitmap(const SkBitmap& bitmap)
+void ImageLayer::setBitmap(const SkBitmap& bitmap)
{
// setBitmap() currently gets called whenever there is any
// style change that affects the layer even if that change doesn't
@@ -105,15 +105,15 @@ void ImageLayerChromium::setBitmap(const SkBitmap& bitmap)
setNeedsDisplay();
}
-void ImageLayerChromium::setTexturePriorities(const CCPriorityCalculator& priorityCalc)
+void ImageLayer::setTexturePriorities(const PriorityCalculator& priorityCalc)
{
// Update the tile data before creating all the layer's tiles.
updateTileSizeAndTilingOption();
- TiledLayerChromium::setTexturePriorities(priorityCalc);
+ TiledLayer::setTexturePriorities(priorityCalc);
}
-void ImageLayerChromium::update(CCTextureUpdateQueue& queue, const CCOcclusionTracker* occlusion, CCRenderingStats& stats)
+void ImageLayer::update(TextureUpdateQueue& queue, const OcclusionTracker* occlusion, RenderingStats& stats)
{
createTextureUpdaterIfNeeded();
if (m_needsDisplay) {
@@ -122,10 +122,10 @@ void ImageLayerChromium::update(CCTextureUpdateQueue& queue, const CCOcclusionTr
invalidateContentRect(IntRect(IntPoint(), contentBounds()));
m_needsDisplay = false;
}
- TiledLayerChromium::update(queue, occlusion, stats);
+ TiledLayer::update(queue, occlusion, stats);
}
-void ImageLayerChromium::createTextureUpdaterIfNeeded()
+void ImageLayer::createTextureUpdaterIfNeeded()
{
if (m_textureUpdater)
return;
@@ -135,22 +135,22 @@ void ImageLayerChromium::createTextureUpdaterIfNeeded()
setTextureFormat(textureFormat);
}
-LayerTextureUpdater* ImageLayerChromium::textureUpdater() const
+LayerTextureUpdater* ImageLayer::textureUpdater() const
{
return m_textureUpdater.get();
}
-IntSize ImageLayerChromium::contentBounds() const
+IntSize ImageLayer::contentBounds() const
{
return IntSize(m_bitmap.width(), m_bitmap.height());
}
-bool ImageLayerChromium::drawsContent() const
+bool ImageLayer::drawsContent() const
{
- return !m_bitmap.isNull() && TiledLayerChromium::drawsContent();
+ return !m_bitmap.isNull() && TiledLayer::drawsContent();
}
-bool ImageLayerChromium::needsContentsScale() const
+bool ImageLayer::needsContentsScale() const
{
// Contents scale is not need for image layer because this can be done in compositor more efficiently.
return false;