OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_ |
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_ | 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_ |
7 | 7 |
8 #include "ui/gfx/rect.h" | 8 #include "ui/gfx/rect.h" |
9 #include "ui/gfx/size.h" | 9 #include "ui/gfx/size.h" |
10 | 10 |
11 class SkCanvas; | 11 class SkCanvas; |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 class Transform; | 14 class Transform; |
15 }; | 15 } |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 class WebContents; | 19 class WebContents; |
20 | 20 |
21 class SynchronousCompositorClient; | 21 class SynchronousCompositorClient; |
22 | 22 |
23 // Interface for embedders that wish to direct compositing operations | 23 // Interface for embedders that wish to direct compositing operations |
24 // synchronously under their own control. Only meaningful when the | 24 // synchronously under their own control. Only meaningful when the |
25 // kEnableSyncrhonousRendererCompositor flag is specified. | 25 // kEnableSyncrhonousRendererCompositor flag is specified. |
(...skipping 25 matching lines...) Expand all Loading... |
51 const gfx::Transform& transform, | 51 const gfx::Transform& transform, |
52 gfx::Rect damage_area) = 0; | 52 gfx::Rect damage_area) = 0; |
53 | 53 |
54 protected: | 54 protected: |
55 virtual ~SynchronousCompositor() {} | 55 virtual ~SynchronousCompositor() {} |
56 }; | 56 }; |
57 | 57 |
58 } // namespace content | 58 } // namespace content |
59 | 59 |
60 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_ | 60 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_ |
OLD | NEW |