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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.h

Issue 17971002: Make RenderWidgetHostViewAura::CopyFromCompositingSurface readback layer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tabcapture-aura: Move calls to RWHImpl 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: content/browser/renderer_host/render_widget_host_view_aura.h
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.h b/content/browser/renderer_host/render_widget_host_view_aura.h
index fcfd3dd0d5f36d590993a1278b939c2e9ae4e98a..a6d45c78e4ff9c15ef09752b113ef4d9cc80aa56 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.h
+++ b/content/browser/renderer_host/render_widget_host_view_aura.h
@@ -40,6 +40,7 @@ class WindowTracker;
}
namespace cc {
+class CopyOutputResult;
class DelegatedFrameData;
}
@@ -433,12 +434,20 @@ class RenderWidgetHostViewAura
// after it was released as the frontbuffer.
void SetSurfaceNotInUseByCompositor(scoped_refptr<ui::Texture>);
- // Called after async thumbnailer task completes. Used to call
- // AdjustSurfaceProtection.
- static void CopyFromCompositingSurfaceFinished(
- const SkBitmap& bitmap,
+ // Called after async thumbnailer task completes. Scales and crops the result
+ // of the copy.
+ static void CopyFromCompositingSurfaceHasResult(
+ const gfx::Size& dst_size_in_pixel,
const base::Callback<void(bool, const SkBitmap&)>& callback,
- bool result);
+ scoped_ptr<cc::CopyOutputResult> result);
+ static void PrepareTextureCopyOutputResult(
+ const gfx::Size& dst_size_in_pixel,
+ const base::Callback<void(bool, const SkBitmap&)>& callback,
+ scoped_ptr<cc::CopyOutputResult> result);
+ static void PrepareBitmapCopyOutputResult(
+ const gfx::Size& dst_size_in_pixel,
+ const base::Callback<void(bool, const SkBitmap&)>& callback,
+ scoped_ptr<cc::CopyOutputResult> result);
ui::Compositor* GetCompositor();

Powered by Google App Engine
This is Rietveld 408576698