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

Unified Diff: ui/compositor/layer.h

Issue 417943004: Use Surfaces to hold delegated renderer contents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « ui/compositor/DEPS ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index e0a545f9ce930406d83a6416a6066b1c1934f3a4..6af9cd766abe662107f5e2f6a85908458cf779bf 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -19,6 +19,7 @@
#include "cc/layers/layer_client.h"
#include "cc/layers/texture_layer_client.h"
#include "cc/resources/texture_mailbox.h"
+#include "cc/surfaces/surface_id.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkRegion.h"
#include "ui/compositor/compositor.h"
@@ -39,6 +40,7 @@ class Layer;
class NinePatchLayer;
class ResourceUpdateQueue;
class SolidColorLayer;
+class SurfaceLayer;
class TextureLayer;
struct ReturnedResource;
typedef std::vector<ReturnedResource> ReturnedResourceArray;
@@ -271,8 +273,12 @@ class COMPOSITOR_EXPORT Layer
void SetShowDelegatedContent(cc::DelegatedFrameProvider* frame_provider,
gfx::Size frame_size_in_dip);
+ // Begins showing content from a surface with a particular id.
+ void SetShowSurface(cc::SurfaceId id, gfx::Size frame_size_in_dip);
+
bool has_external_content() {
- return texture_layer_.get() || delegated_renderer_layer_.get();
+ return texture_layer_.get() || delegated_renderer_layer_.get() ||
+ surface_layer_.get();
}
void SetShowPaintedContent();
@@ -486,6 +492,7 @@ class COMPOSITOR_EXPORT Layer
scoped_refptr<cc::TextureLayer> texture_layer_;
scoped_refptr<cc::SolidColorLayer> solid_color_layer_;
scoped_refptr<cc::DelegatedRendererLayer> delegated_renderer_layer_;
+ scoped_refptr<cc::SurfaceLayer> surface_layer_;
cc::Layer* cc_layer_;
// A cached copy of |Compositor::device_scale_factor()|.
« no previous file with comments | « ui/compositor/DEPS ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698