OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_READBACK_REQUEST_HELPERS_H_ |
| 6 #define CONTENT_BROWSER_READBACK_REQUEST_HELPERS_H_ |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/public/browser/readback_types.h" |
| 10 #include "third_party/skia/include/core/SkImageInfo.h" |
| 11 #include "ui/gfx/geometry/size.h" |
| 12 |
| 13 class SkAutoLockPixels; |
| 14 class SkBitmap; |
| 15 |
| 16 namespace cc { |
| 17 class CopyOutputResult; |
| 18 class SingleReleaseCallback; |
| 19 } |
| 20 |
| 21 namespace content { |
| 22 |
| 23 void CopyFromCompositingSurfaceFinished( |
| 24 const ReadbackRequestCallback& callback, |
| 25 scoped_ptr<cc::SingleReleaseCallback> release_callback, |
| 26 scoped_ptr<SkBitmap> bitmap, |
| 27 scoped_ptr<SkAutoLockPixels> bitmap_pixels_lock, |
| 28 bool result); |
| 29 |
| 30 void PrepareTextureCopyOutputResult(const gfx::Size& dst_size_in_pixel, |
| 31 const SkColorType color_type, |
| 32 const ReadbackRequestCallback& callback, |
| 33 scoped_ptr<cc::CopyOutputResult> result); |
| 34 |
| 35 void PrepareBitmapCopyOutputResult(const gfx::Size& dst_size_in_pixel, |
| 36 const SkColorType preferred_color_type, |
| 37 const ReadbackRequestCallback& callback, |
| 38 scoped_ptr<cc::CopyOutputResult> result); |
| 39 |
| 40 void CopyFromCompositingSurfaceHasResult( |
| 41 const gfx::Size& dst_size_in_pixel, |
| 42 const SkColorType color_type, |
| 43 const ReadbackRequestCallback& callback, |
| 44 scoped_ptr<cc::CopyOutputResult> result); |
| 45 } |
| 46 |
| 47 #endif // CONTENT_BROWSER_READBACK_REQUEST_HELPERS_H_ |
OLD | NEW |