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

Unified Diff: cc/picture_layer.h

Issue 11265046: cc: Add some impl-side painting stub classes and APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nduca bikesheddery Created 8 years, 1 month 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 | « cc/picture.cc ('k') | cc/picture_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_layer.h
diff --git a/cc/picture_layer.h b/cc/picture_layer.h
new file mode 100644
index 0000000000000000000000000000000000000000..d22d9c20fc15c4632eb1538176f0bd41152fdc47
--- /dev/null
+++ b/cc/picture_layer.h
@@ -0,0 +1,37 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_PICTURE_LAYER_H_
+#define CC_PICTURE_LAYER_H_
+
+#include "cc/layer.h"
+#include "cc/picture_pile.h"
+
+namespace cc {
+
+class ContentLayerClient;
+
+class CC_EXPORT PictureLayer : public Layer {
+public:
+ static scoped_refptr<PictureLayer> create(ContentLayerClient*);
+
+ void clearClient() { client_ = 0; }
+
+ // Implement Layer interface
+ virtual bool drawsContent() const OVERRIDE;
+ virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE;
+ virtual void pushPropertiesTo(LayerImpl*) OVERRIDE;
+
+protected:
+ explicit PictureLayer(ContentLayerClient*);
+ virtual ~PictureLayer();
+
+private:
+ ContentLayerClient* client_;
+ PicturePile pile_;
+};
+
+} // namespace cc
+
+#endif // CC_PICTURE_LAYER_H_
« no previous file with comments | « cc/picture.cc ('k') | cc/picture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698