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); |
} |