summaryrefslogtreecommitdiffstats
path: root/cc/image_layer.cc
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-19 21:22:42 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-19 21:22:42 +0000
commitc753e25a8b4366c44134a8c21b9ed3392bf48608 (patch)
treef378c8a762caccf60856a1670ae33dfd638b9453 /cc/image_layer.cc
parent503160f80568f024fa712e280bb1a4e1e6ca1ec3 (diff)
downloadchromium_src-c753e25a8b4366c44134a8c21b9ed3392bf48608.zip
chromium_src-c753e25a8b4366c44134a8c21b9ed3392bf48608.tar.gz
chromium_src-c753e25a8b4366c44134a8c21b9ed3392bf48608.tar.bz2
Revert "cc: Rename cc classes and members to match filenames"
This reverts commit 184fac5add06d5f4670fa6be4a4d3b39232d51bb. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163059 0039d316-1c4b-4281-b951-d872f2087c98
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 752ad65..2ddc4f8 100644
--- a/cc/image_layer.cc
+++ b/cc/image_layer.cc
@@ -18,13 +18,13 @@ class ImageLayerTextureUpdater : public LayerTextureUpdater {
public:
class Texture : public LayerTextureUpdater::Texture {
public:
- Texture(ImageLayerTextureUpdater* textureUpdater, scoped_ptr<PrioritizedTexture> texture)
+ Texture(ImageLayerTextureUpdater* textureUpdater, scoped_ptr<CCPrioritizedTexture> texture)
: LayerTextureUpdater::Texture(texture.Pass())
, m_textureUpdater(textureUpdater)
{
}
- virtual void update(TextureUpdateQueue& queue, const IntRect& sourceRect, const IntSize& destOffset, bool partialUpdate, RenderingStats&) OVERRIDE
+ virtual void update(CCTextureUpdateQueue& queue, const IntRect& sourceRect, const IntSize& destOffset, bool partialUpdate, CCRenderingStats&) OVERRIDE
{
textureUpdater()->updateTexture(queue, texture(), sourceRect, destOffset, partialUpdate);
}
@@ -41,9 +41,9 @@ public:
}
virtual scoped_ptr<LayerTextureUpdater::Texture> createTexture(
- PrioritizedTextureManager* manager) OVERRIDE
+ CCPrioritizedTextureManager* manager) OVERRIDE
{
- return scoped_ptr<LayerTextureUpdater::Texture>(new Texture(this, PrioritizedTexture::create(manager)));
+ return scoped_ptr<LayerTextureUpdater::Texture>(new Texture(this, CCPrioritizedTexture::create(manager)));
}
virtual SampledTexelFormat sampledTexelFormat(GLenum textureFormat) OVERRIDE
@@ -52,7 +52,7 @@ public:
LayerTextureUpdater::SampledTexelFormatRGBA : LayerTextureUpdater::SampledTexelFormatBGRA;
}
- void updateTexture(TextureUpdateQueue& queue, PrioritizedTexture* texture, const IntRect& sourceRect, const IntSize& destOffset, bool partialUpdate)
+ void updateTexture(CCTextureUpdateQueue& queue, CCPrioritizedTexture* 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.
@@ -85,21 +85,21 @@ private:
SkBitmap m_bitmap;
};
-scoped_refptr<ImageLayer> ImageLayer::create()
+scoped_refptr<ImageLayerChromium> ImageLayerChromium::create()
{
- return make_scoped_refptr(new ImageLayer());
+ return make_scoped_refptr(new ImageLayerChromium());
}
-ImageLayer::ImageLayer()
- : TiledLayer()
+ImageLayerChromium::ImageLayerChromium()
+ : TiledLayerChromium()
{
}
-ImageLayer::~ImageLayer()
+ImageLayerChromium::~ImageLayerChromium()
{
}
-void ImageLayer::setBitmap(const SkBitmap& bitmap)
+void ImageLayerChromium::setBitmap(const SkBitmap& bitmap)
{
// setBitmap() currently gets called whenever there is any
// style change that affects the layer even if that change doesn't
@@ -112,15 +112,15 @@ void ImageLayer::setBitmap(const SkBitmap& bitmap)
setNeedsDisplay();
}
-void ImageLayer::setTexturePriorities(const PriorityCalculator& priorityCalc)
+void ImageLayerChromium::setTexturePriorities(const CCPriorityCalculator& priorityCalc)
{
// Update the tile data before creating all the layer's tiles.
updateTileSizeAndTilingOption();
- TiledLayer::setTexturePriorities(priorityCalc);
+ TiledLayerChromium::setTexturePriorities(priorityCalc);
}
-void ImageLayer::update(TextureUpdateQueue& queue, const OcclusionTracker* occlusion, RenderingStats& stats)
+void ImageLayerChromium::update(CCTextureUpdateQueue& queue, const CCOcclusionTracker* occlusion, CCRenderingStats& stats)
{
createTextureUpdaterIfNeeded();
if (m_needsDisplay) {
@@ -129,10 +129,10 @@ void ImageLayer::update(TextureUpdateQueue& queue, const OcclusionTracker* occlu
invalidateContentRect(IntRect(IntPoint(), contentBounds()));
m_needsDisplay = false;
}
- TiledLayer::update(queue, occlusion, stats);
+ TiledLayerChromium::update(queue, occlusion, stats);
}
-void ImageLayer::createTextureUpdaterIfNeeded()
+void ImageLayerChromium::createTextureUpdaterIfNeeded()
{
if (m_textureUpdater)
return;
@@ -143,22 +143,22 @@ void ImageLayer::createTextureUpdaterIfNeeded()
setSampledTexelFormat(textureUpdater()->sampledTexelFormat(textureFormat));
}
-LayerTextureUpdater* ImageLayer::textureUpdater() const
+LayerTextureUpdater* ImageLayerChromium::textureUpdater() const
{
return m_textureUpdater.get();
}
-IntSize ImageLayer::contentBounds() const
+IntSize ImageLayerChromium::contentBounds() const
{
return IntSize(m_bitmap.width(), m_bitmap.height());
}
-bool ImageLayer::drawsContent() const
+bool ImageLayerChromium::drawsContent() const
{
- return !m_bitmap.isNull() && TiledLayer::drawsContent();
+ return !m_bitmap.isNull() && TiledLayerChromium::drawsContent();
}
-bool ImageLayer::needsContentsScale() const
+bool ImageLayerChromium::needsContentsScale() const
{
// Contents scale is not need for image layer because this can be done in compositor more efficiently.
return false;