OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "android_webview/browser/child_frame.h" | 10 #include "android_webview/browser/child_frame.h" |
11 #include "android_webview/browser/compositor_id.h" | 11 #include "android_webview/browser/compositor_id.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "cc/surfaces/frame_sink_id.h" | 14 #include "cc/surfaces/frame_sink_id.h" |
15 #include "cc/surfaces/surface_factory_client.h" | 15 #include "cc/surfaces/surface_factory_client.h" |
16 #include "cc/surfaces/surface_id.h" | 16 #include "cc/surfaces/surface_id.h" |
17 | 17 |
18 struct AwDrawGLInfo; | 18 struct AwDrawGLInfo; |
19 | 19 |
20 namespace cc { | 20 namespace cc { |
21 class Display; | |
22 class SurfaceFactory; | 21 class SurfaceFactory; |
23 class SurfaceIdAllocator; | 22 class SurfaceIdAllocator; |
24 class SurfaceManager; | |
25 } | 23 } |
26 | 24 |
27 namespace android_webview { | 25 namespace android_webview { |
28 | 26 |
29 class ChildFrame; | 27 class ChildFrame; |
30 class RenderThreadManager; | 28 class RenderThreadManager; |
31 class SurfacesInstance; | 29 class SurfacesInstance; |
32 | 30 |
33 class HardwareRenderer : public cc::SurfaceFactoryClient { | 31 class HardwareRenderer : public cc::SurfaceFactoryClient { |
34 public: | 32 public: |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // dropped. | 90 // dropped. |
93 uint32_t last_committed_compositor_frame_sink_id_; | 91 uint32_t last_committed_compositor_frame_sink_id_; |
94 uint32_t last_submitted_compositor_frame_sink_id_; | 92 uint32_t last_submitted_compositor_frame_sink_id_; |
95 | 93 |
96 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); | 94 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); |
97 }; | 95 }; |
98 | 96 |
99 } // namespace android_webview | 97 } // namespace android_webview |
100 | 98 |
101 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 99 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
OLD | NEW |