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

Unified Diff: content/browser/compositor/surface_utils.h

Issue 1582053002: Implement webview.captureVisibleRegion() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android compile. Created 4 years, 11 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/compositor/surface_utils.h
diff --git a/content/browser/compositor/surface_utils.h b/content/browser/compositor/surface_utils.h
index b56fef2717070218c8d990c1bf901718e58ef5ab..ef1f89d91713fad32a7d34bf11f926dc949fbc5f 100644
--- a/content/browser/compositor/surface_utils.h
+++ b/content/browser/compositor/surface_utils.h
@@ -6,8 +6,16 @@
#define CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_
#include "base/memory/scoped_ptr.h"
+#include "content/public/browser/readback_types.h"
+#include "third_party/skia/include/core/SkImageInfo.h"
+#include "ui/gfx/geometry/size.h"
+
+class SkAutoLockPixels;
ncarter (slow) 2016/01/20 21:20:49 Seems unused.
wjmaclean 2016/01/20 21:45:19 Done.
+class SkBitmap;
ncarter (slow) 2016/01/20 21:20:49 Seems unused.
wjmaclean 2016/01/20 21:45:19 Done.
namespace cc {
+class CopyOutputResult;
+class SingleReleaseCallback;
ncarter (slow) 2016/01/20 21:20:49 Seems unused.
wjmaclean 2016/01/20 21:45:19 Done. Thanks for spotting these unused cases!
class SurfaceIdAllocator;
class SurfaceManager;
} // namespace cc
@@ -18,6 +26,12 @@ scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator();
cc::SurfaceManager* GetSurfaceManager();
+void CopyFromCompositingSurfaceHasResult(
+ const gfx::Size& dst_size_in_pixel,
+ const SkColorType color_type,
+ const ReadbackRequestCallback& callback,
+ scoped_ptr<cc::CopyOutputResult> result);
+
} // namespace content
#endif // CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698