summaryrefslogtreecommitdiffstats
path: root/cc/layers/picture_layer.h
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-03 01:20:47 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-03 01:20:47 +0000
commit5e41bae5e1c768a8571ac9e0c9a43f4c5fe5465b (patch)
tree40904382131a84d82ac9926eddfa3b4325fd36bc /cc/layers/picture_layer.h
parent35aac891f0c2cf68effc58626e504df366522a78 (diff)
downloadchromium_src-5e41bae5e1c768a8571ac9e0c9a43f4c5fe5465b.zip
chromium_src-5e41bae5e1c768a8571ac9e0c9a43f4c5fe5465b.tar.gz
chromium_src-5e41bae5e1c768a8571ac9e0c9a43f4c5fe5465b.tar.bz2
cc: PictureLayer should just derive from Layer
It was deriving from contents scaling layer, but as it calculates its own contents scale on the compositor thread, it's just a confusing no-op. R=danakj@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/21951003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215439 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layers/picture_layer.h')
-rw-r--r--cc/layers/picture_layer.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/cc/layers/picture_layer.h b/cc/layers/picture_layer.h
index 313da87..7a9a427 100644
--- a/cc/layers/picture_layer.h
+++ b/cc/layers/picture_layer.h
@@ -7,7 +7,6 @@
#include "cc/base/invalidation_region.h"
#include "cc/debug/devtools_instrumentation.h"
-#include "cc/layers/contents_scaling_layer.h"
#include "cc/layers/layer.h"
#include "cc/resources/picture_pile.h"
#include "cc/trees/occlusion_tracker.h"
@@ -17,13 +16,13 @@ namespace cc {
class ContentLayerClient;
class ResourceUpdateQueue;
-class CC_EXPORT PictureLayer : public ContentsScalingLayer {
+class CC_EXPORT PictureLayer : public Layer {
public:
static scoped_refptr<PictureLayer> Create(ContentLayerClient* client);
void ClearClient() { client_ = NULL; }
- // Implement Layer interface
+ // Layer interface.
virtual bool DrawsContent() const OVERRIDE;
virtual scoped_ptr<LayerImpl> CreateLayerImpl(
LayerTreeImpl* tree_impl) OVERRIDE;