OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CC_OUTPUT_OUTPUT_SURFACE_H_ | 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_H_ |
6 #define CC_OUTPUT_OUTPUT_SURFACE_H_ | 6 #define CC_OUTPUT_OUTPUT_SURFACE_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 | 174 |
175 struct OutputSurface::Capabilities capabilities_; | 175 struct OutputSurface::Capabilities capabilities_; |
176 scoped_refptr<ContextProvider> context_provider_; | 176 scoped_refptr<ContextProvider> context_provider_; |
177 scoped_refptr<ContextProvider> worker_context_provider_; | 177 scoped_refptr<ContextProvider> worker_context_provider_; |
178 scoped_ptr<SoftwareOutputDevice> software_device_; | 178 scoped_ptr<SoftwareOutputDevice> software_device_; |
179 gfx::Size surface_size_; | 179 gfx::Size surface_size_; |
180 float device_scale_factor_; | 180 float device_scale_factor_; |
181 bool has_alpha_; | 181 bool has_alpha_; |
182 base::ThreadChecker client_thread_checker_; | 182 base::ThreadChecker client_thread_checker_; |
183 | 183 |
184 void CommitVSyncParameters(base::TimeTicks timebase, | |
185 base::TimeDelta interval); | |
186 | |
187 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); | 184 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); |
188 void ReclaimResources(const CompositorFrameAck* ack); | 185 void ReclaimResources(const CompositorFrameAck* ack); |
189 void SetExternalStencilTest(bool enabled); | 186 void SetExternalStencilTest(bool enabled); |
190 void DetachFromClientInternal(); | 187 void DetachFromClientInternal(); |
191 | 188 |
192 private: | 189 private: |
193 bool external_stencil_test_enabled_; | 190 bool external_stencil_test_enabled_; |
194 | 191 |
195 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; | 192 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; |
196 | 193 |
197 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 194 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
198 }; | 195 }; |
199 | 196 |
200 } // namespace cc | 197 } // namespace cc |
201 | 198 |
202 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 199 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
OLD | NEW |