OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_ |
6 #define CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/common/content_export.h" |
9 #include "content/public/browser/readback_types.h" | 10 #include "content/public/browser/readback_types.h" |
10 #include "third_party/skia/include/core/SkImageInfo.h" | 11 #include "third_party/skia/include/core/SkImageInfo.h" |
11 #include "ui/gfx/geometry/size.h" | 12 #include "ui/gfx/geometry/size.h" |
12 | 13 |
13 namespace cc { | 14 namespace cc { |
14 class CopyOutputResult; | 15 class CopyOutputResult; |
15 class SurfaceIdAllocator; | 16 class SurfaceIdAllocator; |
16 class SurfaceManager; | 17 class SurfaceManager; |
17 } // namespace cc | 18 } // namespace cc |
18 | 19 |
19 namespace content { | 20 namespace content { |
20 | 21 |
21 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator(); | 22 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator(); |
22 | 23 |
| 24 CONTENT_EXPORT |
23 cc::SurfaceManager* GetSurfaceManager(); | 25 cc::SurfaceManager* GetSurfaceManager(); |
24 | 26 |
25 void CopyFromCompositingSurfaceHasResult( | 27 void CopyFromCompositingSurfaceHasResult( |
26 const gfx::Size& dst_size_in_pixel, | 28 const gfx::Size& dst_size_in_pixel, |
27 const SkColorType color_type, | 29 const SkColorType color_type, |
28 const ReadbackRequestCallback& callback, | 30 const ReadbackRequestCallback& callback, |
29 scoped_ptr<cc::CopyOutputResult> result); | 31 scoped_ptr<cc::CopyOutputResult> result); |
30 | 32 |
31 } // namespace content | 33 } // namespace content |
32 | 34 |
33 #endif // CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_ | 35 #endif // CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_ |
OLD | NEW |