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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "cc/resources/returned_resource.h" | 15 #include "cc/resources/returned_resource.h" |
16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
17 #include "ui/gfx/geometry/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
18 #include "ui/gfx/geometry/size.h" | 18 #include "ui/gfx/geometry/size.h" |
19 | 19 |
20 class SkCanvas; | 20 class SkCanvas; |
21 | 21 |
22 namespace cc { | 22 namespace cc { |
23 class CompositorFrame; | 23 class CompositorFrame; |
24 class CompositorFrameAck; | |
25 } | 24 } |
26 | 25 |
27 namespace gfx { | 26 namespace gfx { |
28 class Point; | 27 class Point; |
29 class ScrollOffset; | 28 class ScrollOffset; |
30 class Transform; | 29 class Transform; |
31 }; | 30 }; |
32 | 31 |
33 namespace content { | 32 namespace content { |
34 | 33 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // and if any input animation is active, it should tick now. | 117 // and if any input animation is active, it should tick now. |
119 virtual void OnComputeScroll(base::TimeTicks animation_time) = 0; | 118 virtual void OnComputeScroll(base::TimeTicks animation_time) = 0; |
120 | 119 |
121 protected: | 120 protected: |
122 virtual ~SynchronousCompositor() {} | 121 virtual ~SynchronousCompositor() {} |
123 }; | 122 }; |
124 | 123 |
125 } // namespace content | 124 } // namespace content |
126 | 125 |
127 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_ | 126 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_ |
OLD | NEW |