OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 ANativeWindow* window_; | 147 ANativeWindow* window_; |
148 gpu::SurfaceHandle surface_handle_; | 148 gpu::SurfaceHandle surface_handle_; |
149 | 149 |
150 CompositorClient* client_; | 150 CompositorClient* client_; |
151 | 151 |
152 gfx::NativeWindow root_window_; | 152 gfx::NativeWindow root_window_; |
153 | 153 |
154 // Whether we need to update animations on the next composite. | 154 // Whether we need to update animations on the next composite. |
155 bool needs_animate_; | 155 bool needs_animate_; |
156 | 156 |
157 // The number of SwapBuffer calls that have not returned and ACK'd from | 157 // The number of SubmitFrame calls that have not returned and ACK'd from |
158 // the GPU thread. | 158 // the GPU thread. |
159 unsigned int pending_swapbuffers_; | 159 unsigned int pending_frames_; |
160 | 160 |
161 size_t num_successive_context_creation_failures_; | 161 size_t num_successive_context_creation_failures_; |
162 | 162 |
163 // Whether there is an CompositorFrameSink request pending from the current | 163 // Whether there is an CompositorFrameSink request pending from the current |
164 // |host_|. Becomes |true| if RequestNewCompositorFrameSink is called, and | 164 // |host_|. Becomes |true| if RequestNewCompositorFrameSink is called, and |
165 // |false| if |host_| is deleted or we succeed in creating *and* initializing | 165 // |false| if |host_| is deleted or we succeed in creating *and* initializing |
166 // a CompositorFrameSink (which is essentially the contract with cc). | 166 // a CompositorFrameSink (which is essentially the contract with cc). |
167 bool compositor_frame_sink_request_pending_; | 167 bool compositor_frame_sink_request_pending_; |
168 | 168 |
169 gpu::Capabilities gpu_capabilities_; | 169 gpu::Capabilities gpu_capabilities_; |
170 bool has_compositor_frame_sink_ = false; | 170 bool has_compositor_frame_sink_ = false; |
171 std::unordered_set<cc::FrameSinkId, cc::FrameSinkIdHash> | 171 std::unordered_set<cc::FrameSinkId, cc::FrameSinkIdHash> |
172 pending_child_frame_sink_ids_; | 172 pending_child_frame_sink_ids_; |
173 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 173 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
174 | 174 |
175 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 175 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
176 }; | 176 }; |
177 | 177 |
178 } // namespace content | 178 } // namespace content |
179 | 179 |
180 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 180 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
OLD | NEW |