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_ |