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

Unified Diff: cc/delegated_renderer_layer.h

Issue 12340095: cc: Make damage on delegated frame damage the host layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 7 years, 10 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/delegated_renderer_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/delegated_renderer_layer.h
diff --git a/cc/delegated_renderer_layer.h b/cc/delegated_renderer_layer.h
index 5529b76796bdb732e5259881780b404b3faccf54..f8c847d74615eb32cd980e2af0fa960abf170f5b 100644
--- a/cc/delegated_renderer_layer.h
+++ b/cc/delegated_renderer_layer.h
@@ -9,6 +9,7 @@
#include "cc/layer.h"
namespace cc {
+class DelegatedFrameData;
class CC_EXPORT DelegatedRendererLayer : public Layer {
public:
@@ -18,11 +19,22 @@ class CC_EXPORT DelegatedRendererLayer : public Layer {
OVERRIDE;
virtual void pushPropertiesTo(LayerImpl* impl) OVERRIDE;
+ // Set the size at which the frame should be displayed, with the origin at the
+ // layer's origin. This must always contain at least the layer's bounds. A
+ // value of (0, 0) implies that the frame should be displayed to fit exactly
+ // in the layer's bounds.
+ void SetDisplaySize(gfx::Size size);
+
+ void SetFrameData(scoped_ptr<DelegatedFrameData> frame_data);
+
protected:
DelegatedRendererLayer();
+ virtual ~DelegatedRendererLayer();
private:
- virtual ~DelegatedRendererLayer();
+ scoped_ptr<DelegatedFrameData> frame_data_;
+ gfx::RectF damage_in_frame_;
+ gfx::Size display_size_;
};
}
« no previous file with comments | « no previous file | cc/delegated_renderer_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698