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

Unified Diff: cc/layers/picture_image_layer.h

Issue 373113003: Keeping track of descendants that draw content instead of recalcualting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made DrawsContent non-virtual Created 6 years, 5 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/layers/picture_image_layer.h
diff --git a/cc/layers/picture_image_layer.h b/cc/layers/picture_image_layer.h
index 69b89d1b68ac34c2a644461ba643fcc3f89b8782..390e2fcfbda030d57540e38ed89e6452310f1306 100644
--- a/cc/layers/picture_image_layer.h
+++ b/cc/layers/picture_image_layer.h
@@ -22,7 +22,6 @@ class CC_EXPORT PictureImageLayer : public PictureLayer, ContentLayerClient {
// Layer implementation.
virtual scoped_ptr<LayerImpl> CreateLayerImpl(
LayerTreeImpl* tree_impl) OVERRIDE;
- virtual bool DrawsContent() const OVERRIDE;
// ContentLayerClient implementation.
virtual void PaintContents(
@@ -33,6 +32,9 @@ class CC_EXPORT PictureImageLayer : public PictureLayer, ContentLayerClient {
virtual void DidChangeLayerCanUseLCDText() OVERRIDE {}
virtual bool FillsBoundsCompletely() const OVERRIDE;
+ protected:
+ virtual void UpdateDrawsContent(bool drawsContent) OVERRIDE;
+
private:
PictureImageLayer();
virtual ~PictureImageLayer();

Powered by Google App Engine
This is Rietveld 408576698