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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "content/public/browser/readback_types.h" | 11 #include "content/public/browser/readback_types.h" |
12 #include "third_party/skia/include/core/SkImageInfo.h" | 12 #include "third_party/skia/include/core/SkImageInfo.h" |
13 #include "ui/gfx/geometry/size.h" | 13 #include "ui/gfx/geometry/size.h" |
14 | 14 |
15 namespace cc { | 15 namespace cc { |
16 class CopyOutputResult; | 16 class CopyOutputResult; |
17 class SurfaceIdAllocator; | |
18 class SurfaceManager; | 17 class SurfaceManager; |
19 } // namespace cc | 18 } // namespace cc |
20 | 19 |
21 namespace content { | 20 namespace content { |
22 | 21 |
23 CONTENT_EXPORT | 22 CONTENT_EXPORT uint32_t AllocateSurfaceClientId(); |
24 std::unique_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator(); | |
25 | 23 |
26 CONTENT_EXPORT | 24 CONTENT_EXPORT cc::SurfaceManager* GetSurfaceManager(); |
27 cc::SurfaceManager* GetSurfaceManager(); | |
28 | 25 |
29 void CopyFromCompositingSurfaceHasResult( | 26 void CopyFromCompositingSurfaceHasResult( |
30 const gfx::Size& dst_size_in_pixel, | 27 const gfx::Size& dst_size_in_pixel, |
31 const SkColorType color_type, | 28 const SkColorType color_type, |
32 const ReadbackRequestCallback& callback, | 29 const ReadbackRequestCallback& callback, |
33 std::unique_ptr<cc::CopyOutputResult> result); | 30 std::unique_ptr<cc::CopyOutputResult> result); |
34 | 31 |
35 } // namespace content | 32 } // namespace content |
36 | 33 |
37 #endif // CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_ | 34 #endif // CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_ |
OLD | NEW |