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

Unified Diff: cc/layers/picture_layer.h

Issue 519583003: Use the solid color detection to create solid layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | cc/layers/picture_layer.cc » ('j') | cc/layers/picture_layer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer.h
diff --git a/cc/layers/picture_layer.h b/cc/layers/picture_layer.h
index 80bb4d867a6b01ff5c50a390fb835b0735a3a81a..54d5c206059fa40a545992c68c464b2f853fcc4c 100644
--- a/cc/layers/picture_layer.h
+++ b/cc/layers/picture_layer.h
@@ -16,6 +16,7 @@ namespace cc {
class ContentLayerClient;
class ResourceUpdateQueue;
+class PictureLayerImpl;
class CC_EXPORT PictureLayer : public Layer {
public:
@@ -51,6 +52,8 @@ class CC_EXPORT PictureLayer : public Layer {
virtual bool HasDrawableContent() const OVERRIDE;
void UpdateCanUseLCDText();
+ virtual void SetSolidColorPropertiesTo(PictureLayerImpl* layer_impl) const;
vmpstr 2014/08/29 06:49:14 Why virtual?
hendrikw 2014/08/29 14:03:21 There are four tests in layer try host unit test w
vmpstr 2014/08/29 14:20:44 Ah ok. Can you leave a "Virtual for testing." comm
enne (OOO) 2014/08/29 16:53:43 Virtual for testing. :( Can you make the fake pi
hendrikw 2014/09/02 14:19:17 I found a way to do the same thing without the vir
+
private:
ContentLayerClient* client_;
scoped_refptr<PicturePile> pile_;
« no previous file with comments | « no previous file | cc/layers/picture_layer.cc » ('j') | cc/layers/picture_layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698