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" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 void DestroySurface(); | 66 void DestroySurface(); |
67 | 67 |
68 void CreateNewCompositorFrameSinkSupport(); | 68 void CreateNewCompositorFrameSinkSupport(); |
69 | 69 |
70 RenderThreadManager* render_thread_manager_; | 70 RenderThreadManager* render_thread_manager_; |
71 | 71 |
72 typedef void* EGLContext; | 72 typedef void* EGLContext; |
73 EGLContext last_egl_context_; | 73 EGLContext last_egl_context_; |
74 | 74 |
75 // Information about last delegated frame. | 75 // Information about last delegated frame. |
76 gfx::Size frame_size_; | 76 gfx::Size surface_size_; |
| 77 float device_scale_factor_ = 0; |
77 | 78 |
78 // Infromation from UI on last commit. | 79 // Infromation from UI on last commit. |
79 gfx::Vector2d scroll_offset_; | 80 gfx::Vector2d scroll_offset_; |
80 | 81 |
81 ChildFrameQueue child_frame_queue_; | 82 ChildFrameQueue child_frame_queue_; |
82 | 83 |
83 // This holds the last ChildFrame received. Contains the frame info of the | 84 // This holds the last ChildFrame received. Contains the frame info of the |
84 // last frame. The |frame| member is always null since frame has already | 85 // last frame. The |frame| member is always null since frame has already |
85 // been submitted. | 86 // been submitted. |
86 std::unique_ptr<ChildFrame> child_frame_; | 87 std::unique_ptr<ChildFrame> child_frame_; |
(...skipping 10 matching lines...) Expand all Loading... |
97 // dropped. | 98 // dropped. |
98 uint32_t last_committed_compositor_frame_sink_id_; | 99 uint32_t last_committed_compositor_frame_sink_id_; |
99 uint32_t last_submitted_compositor_frame_sink_id_; | 100 uint32_t last_submitted_compositor_frame_sink_id_; |
100 | 101 |
101 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); | 102 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); |
102 }; | 103 }; |
103 | 104 |
104 } // namespace android_webview | 105 } // namespace android_webview |
105 | 106 |
106 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 107 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
OLD | NEW |