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

Unified Diff: content/browser/readback_request_helpers.h

Issue 1582053002: Implement webview.captureVisibleRegion() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix histograms.xml 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/readback_request_helpers.h
diff --git a/content/browser/readback_request_helpers.h b/content/browser/readback_request_helpers.h
new file mode 100644
index 0000000000000000000000000000000000000000..e1a873c85c1a00b8fc0e6ba65d0f7134330a7349
--- /dev/null
+++ b/content/browser/readback_request_helpers.h
@@ -0,0 +1,47 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_READBACK_REQUEST_HELPERS_H_
+#define CONTENT_BROWSER_READBACK_REQUEST_HELPERS_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;
+class SkBitmap;
+
+namespace cc {
+class CopyOutputResult;
+class SingleReleaseCallback;
+}
+
+namespace content {
+
+void CopyFromCompositingSurfaceFinished(
+ const ReadbackRequestCallback& callback,
+ scoped_ptr<cc::SingleReleaseCallback> release_callback,
+ scoped_ptr<SkBitmap> bitmap,
+ scoped_ptr<SkAutoLockPixels> bitmap_pixels_lock,
+ bool result);
+
+void PrepareTextureCopyOutputResult(const gfx::Size& dst_size_in_pixel,
+ const SkColorType color_type,
+ const ReadbackRequestCallback& callback,
+ scoped_ptr<cc::CopyOutputResult> result);
+
+void PrepareBitmapCopyOutputResult(const gfx::Size& dst_size_in_pixel,
+ const SkColorType preferred_color_type,
+ const ReadbackRequestCallback& callback,
+ scoped_ptr<cc::CopyOutputResult> result);
+
+void CopyFromCompositingSurfaceHasResult(
+ const gfx::Size& dst_size_in_pixel,
+ const SkColorType color_type,
+ const ReadbackRequestCallback& callback,
+ scoped_ptr<cc::CopyOutputResult> result);
+}
+
+#endif // CONTENT_BROWSER_READBACK_REQUEST_HELPERS_H_

Powered by Google App Engine
This is Rietveld 408576698