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

Unified Diff: ui/compositor/layer.h

Issue 17971002: Make RenderWidgetHostViewAura::CopyFromCompositingSurface readback layer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tabcapture-aura: add test and fix IsSurfaceAvailableForCopy Created 7 years, 6 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 d536bf841932e2b48620972b20024b49a92877d0..25e1e930fcf1bd1099f06477dccc5e237bad8b86 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -31,6 +31,7 @@ class SkCanvas;
namespace cc {
class ContentLayer;
+class CopyOutputRequest;
class DelegatedFrameData;
class DelegatedRendererLayer;
class Layer;
@@ -260,6 +261,10 @@ class COMPOSITOR_EXPORT Layer
void SetDelegatedFrame(scoped_ptr<cc::DelegatedFrameData> frame,
gfx::Size frame_size_in_dip);
+ bool has_external_content() {
+ return texture_layer_.get() || delegated_renderer_layer_.get();
+ }
+
// Gets unused resources to recycle to the child compositor.
void TakeUnusedResourcesForChildCompositor(
cc::TransferableResourceArray* array);
@@ -302,6 +307,9 @@ class COMPOSITOR_EXPORT Layer
// (e.g. the GPU process on UI_COMPOSITOR_IMAGE_TRANSPORT).
bool layer_updated_externally() const { return layer_updated_externally_; }
+ // Requets a copy of the layer's output as a texture or bitmap.
+ void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request);
+
// ContentLayerClient
virtual void PaintContents(
SkCanvas* canvas, gfx::Rect clip, gfx::RectF* opaque) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698