| 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 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 scoped_refptr<ContextProvider> worker_context_provider_; | 192 scoped_refptr<ContextProvider> worker_context_provider_; |
| 193 #if defined(ENABLE_VULKAN) | 193 #if defined(ENABLE_VULKAN) |
| 194 scoped_refptr<VulkanContextProvider> vulkan_context_provider_; | 194 scoped_refptr<VulkanContextProvider> vulkan_context_provider_; |
| 195 #endif | 195 #endif |
| 196 std::unique_ptr<SoftwareOutputDevice> software_device_; | 196 std::unique_ptr<SoftwareOutputDevice> software_device_; |
| 197 gfx::Size surface_size_; | 197 gfx::Size surface_size_; |
| 198 float device_scale_factor_; | 198 float device_scale_factor_; |
| 199 bool has_alpha_; | 199 bool has_alpha_; |
| 200 base::ThreadChecker client_thread_checker_; | 200 base::ThreadChecker client_thread_checker_; |
| 201 | 201 |
| 202 void CommitVSyncParameters(base::TimeTicks timebase, | |
| 203 base::TimeDelta interval); | |
| 204 | |
| 205 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); | 202 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); |
| 206 void ReclaimResources(const CompositorFrameAck* ack); | 203 void ReclaimResources(const CompositorFrameAck* ack); |
| 207 void SetExternalStencilTest(bool enabled); | 204 void SetExternalStencilTest(bool enabled); |
| 208 void DetachFromClientInternal(); | 205 void DetachFromClientInternal(); |
| 209 | 206 |
| 210 private: | 207 private: |
| 211 bool external_stencil_test_enabled_; | 208 bool external_stencil_test_enabled_; |
| 212 | 209 |
| 213 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; | 210 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; |
| 214 | 211 |
| 215 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 212 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
| 216 }; | 213 }; |
| 217 | 214 |
| 218 } // namespace cc | 215 } // namespace cc |
| 219 | 216 |
| 220 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 217 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
| OLD | NEW |