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/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 150 |
151 void DidLoseOutputSurface(); | 151 void DidLoseOutputSurface(); |
152 void SetMemoryPolicy(const ManagedMemoryPolicy& policy); | 152 void SetMemoryPolicy(const ManagedMemoryPolicy& policy); |
153 | 153 |
154 protected: | 154 protected: |
155 OutputSurfaceClient* client_; | 155 OutputSurfaceClient* client_; |
156 | 156 |
157 // Synchronously initialize context3d and enter hardware mode. | 157 // Synchronously initialize context3d and enter hardware mode. |
158 // This can only supported in threaded compositing mode. | 158 // This can only supported in threaded compositing mode. |
159 bool InitializeAndSetContext3d( | 159 bool InitializeAndSetContext3d( |
160 scoped_refptr<ContextProvider> context_provider); | 160 scoped_refptr<ContextProvider> context_provider, |
| 161 scoped_refptr<ContextProvider> worker_context_provider); |
161 void ReleaseGL(); | 162 void ReleaseGL(); |
162 | 163 |
163 void PostSwapBuffersComplete(); | 164 void PostSwapBuffersComplete(); |
164 | 165 |
165 struct OutputSurface::Capabilities capabilities_; | 166 struct OutputSurface::Capabilities capabilities_; |
166 scoped_refptr<ContextProvider> context_provider_; | 167 scoped_refptr<ContextProvider> context_provider_; |
167 scoped_refptr<ContextProvider> worker_context_provider_; | 168 scoped_refptr<ContextProvider> worker_context_provider_; |
168 scoped_ptr<SoftwareOutputDevice> software_device_; | 169 scoped_ptr<SoftwareOutputDevice> software_device_; |
169 scoped_ptr<OverlayCandidateValidator> overlay_candidate_validator_; | 170 scoped_ptr<OverlayCandidateValidator> overlay_candidate_validator_; |
170 gfx::Size surface_size_; | 171 gfx::Size surface_size_; |
(...skipping 20 matching lines...) Expand all Loading... |
191 bool external_stencil_test_enabled_; | 192 bool external_stencil_test_enabled_; |
192 | 193 |
193 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; | 194 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; |
194 | 195 |
195 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 196 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
196 }; | 197 }; |
197 | 198 |
198 } // namespace cc | 199 } // namespace cc |
199 | 200 |
200 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 201 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
OLD | NEW |