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

Unified Diff: ui/compositor/layer.h

Issue 15001027: [Aura] Added Support for rendering software compositor frames as cc::TextureLayers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index a5afd6b86c853ce6becb25b56f65fd90b5c09a66..531873047d56cce9ed3d15f6f9d3f3a7a41a33d7 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -17,6 +17,7 @@
#include "cc/base/scoped_ptr_vector.h"
#include "cc/layers/content_layer_client.h"
#include "cc/layers/texture_layer_client.h"
+#include "cc/resources/texture_mailbox.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkRegion.h"
#include "ui/compositor/compositor.h"
@@ -250,6 +251,9 @@ class COMPOSITOR_EXPORT Layer
void SetExternalTexture(ui::Texture* texture);
ui::Texture* external_texture() { return texture_.get(); }
+ void SetTextureMailbox(const cc::TextureMailbox& mailbox,
piman 2013/05/28 20:58:57 nit: comment.
slavi 2013/05/29 18:31:48 Done.
+ float device_scale_factor);
+
// Sets a delegated frame, coming from a child compositor.
void SetDelegatedFrame(scoped_ptr<cc::DelegatedFrameData> frame,
gfx::Size frame_size_in_dip);
@@ -465,6 +469,12 @@ class COMPOSITOR_EXPORT Layer
// A cached copy of |Compositor::device_scale_factor()|.
float device_scale_factor_;
+ // A cached copy of the TextureMailbox given texture_layer_.
+ cc::TextureMailbox mailbox_;
+
+ // Device scale factor in which mailbox_ was rendered in.
+ float mailbox_scale_factor_;
+
// The size of the delegated frame in DIP, set when SetDelegatedFrame was
// called.
gfx::Size delegated_frame_size_in_dip_;

Powered by Google App Engine
This is Rietveld 408576698