Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: cc/content_layer.cc

Issue 11189043: cc: Rename cc classes and members to match filenames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/content_layer.cc
diff --git a/cc/content_layer.cc b/cc/content_layer.cc
index 750ec7cd1e8e50d8addaf8e82b6e5f48260c311e..ce7474249c6bb452c571ac27b1103fba42f53edb 100644
--- a/cc/content_layer.cc
+++ b/cc/content_layer.cc
@@ -18,12 +18,12 @@
namespace cc {
-ContentLayerPainter::ContentLayerPainter(ContentLayerChromiumClient* client)
+ContentLayerPainter::ContentLayerPainter(ContentLayerClient* client)
: m_client(client)
{
}
-scoped_ptr<ContentLayerPainter> ContentLayerPainter::create(ContentLayerChromiumClient* client)
+scoped_ptr<ContentLayerPainter> ContentLayerPainter::create(ContentLayerClient* client)
{
return make_scoped_ptr(new ContentLayerPainter(client));
}
@@ -38,59 +38,59 @@ void ContentLayerPainter::paint(SkCanvas* canvas, const IntRect& contentRect, Fl
WebKit::Platform::current()->histogramCustomCounts("Renderer4.AccelContentPaintMegapixPerSecond", pixelsPerSec / 1000000, 10, 210, 30);
}
-scoped_refptr<ContentLayerChromium> ContentLayerChromium::create(ContentLayerChromiumClient* client)
+scoped_refptr<ContentLayer> ContentLayer::create(ContentLayerClient* client)
{
- return make_scoped_refptr(new ContentLayerChromium(client));
+ return make_scoped_refptr(new ContentLayer(client));
}
-ContentLayerChromium::ContentLayerChromium(ContentLayerChromiumClient* client)
- : TiledLayerChromium()
+ContentLayer::ContentLayer(ContentLayerClient* client)
+ : TiledLayer()
, m_client(client)
{
}
-ContentLayerChromium::~ContentLayerChromium()
+ContentLayer::~ContentLayer()
{
}
-bool ContentLayerChromium::drawsContent() const
+bool ContentLayer::drawsContent() const
{
- return TiledLayerChromium::drawsContent() && m_client;
+ return TiledLayer::drawsContent() && m_client;
}
-void ContentLayerChromium::setTexturePriorities(const CCPriorityCalculator& priorityCalc)
+void ContentLayer::setTexturePriorities(const PriorityCalculator& priorityCalc)
{
// Update the tile data before creating all the layer's tiles.
updateTileSizeAndTilingOption();
- TiledLayerChromium::setTexturePriorities(priorityCalc);
+ TiledLayer::setTexturePriorities(priorityCalc);
}
-void ContentLayerChromium::update(CCTextureUpdateQueue& queue, const CCOcclusionTracker* occlusion, CCRenderingStats& stats)
+void ContentLayer::update(TextureUpdateQueue& queue, const OcclusionTracker* occlusion, RenderingStats& stats)
{
createTextureUpdaterIfNeeded();
- TiledLayerChromium::update(queue, occlusion, stats);
+ TiledLayer::update(queue, occlusion, stats);
m_needsDisplay = false;
}
-bool ContentLayerChromium::needMoreUpdates()
+bool ContentLayer::needMoreUpdates()
{
return needsIdlePaint();
}
-LayerTextureUpdater* ContentLayerChromium::textureUpdater() const
+LayerTextureUpdater* ContentLayer::textureUpdater() const
{
return m_textureUpdater.get();
}
-void ContentLayerChromium::createTextureUpdaterIfNeeded()
+void ContentLayer::createTextureUpdaterIfNeeded()
{
if (m_textureUpdater)
return;
- scoped_ptr<LayerPainterChromium> painter = ContentLayerPainter::create(m_client).PassAs<LayerPainterChromium>();
+ scoped_ptr<LayerPainter> painter = ContentLayerPainter::create(m_client).PassAs<LayerPainter>();
if (layerTreeHost()->settings().acceleratePainting)
m_textureUpdater = FrameBufferSkPictureCanvasLayerTextureUpdater::create(painter.Pass());
- else if (CCSettings::perTilePaintingEnabled())
+ else if (Settings::perTilePaintingEnabled())
m_textureUpdater = BitmapSkPictureCanvasLayerTextureUpdater::create(painter.Pass());
else
m_textureUpdater = BitmapCanvasLayerTextureUpdater::create(painter.Pass());
@@ -101,9 +101,9 @@ void ContentLayerChromium::createTextureUpdaterIfNeeded()
setSampledTexelFormat(textureUpdater()->sampledTexelFormat(textureFormat));
}
-void ContentLayerChromium::setContentsOpaque(bool opaque)
+void ContentLayer::setContentsOpaque(bool opaque)
{
- LayerChromium::setContentsOpaque(opaque);
+ Layer::setContentsOpaque(opaque);
if (m_textureUpdater)
m_textureUpdater->setOpaque(opaque);
}
« cc/active_animation.h ('K') | « cc/content_layer.h ('k') | cc/content_layer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698