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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 float device_scale_factor_; | 184 float device_scale_factor_; |
185 bool has_alpha_; | 185 bool has_alpha_; |
186 base::ThreadChecker client_thread_checker_; | 186 base::ThreadChecker client_thread_checker_; |
187 | 187 |
188 void CommitVSyncParameters(base::TimeTicks timebase, | 188 void CommitVSyncParameters(base::TimeTicks timebase, |
189 base::TimeDelta interval); | 189 base::TimeDelta interval); |
190 | 190 |
191 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); | 191 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); |
192 void ReclaimResources(const CompositorFrameAck* ack); | 192 void ReclaimResources(const CompositorFrameAck* ack); |
193 void SetExternalStencilTest(bool enabled); | 193 void SetExternalStencilTest(bool enabled); |
194 void SetExternalDrawConstraints( | |
195 const gfx::Transform& transform, | |
196 const gfx::Rect& viewport, | |
197 const gfx::Rect& clip, | |
198 const gfx::Rect& viewport_rect_for_tile_priority, | |
199 const gfx::Transform& transform_for_tile_priority, | |
200 bool resourceless_software_draw); | |
201 void DetachFromClientInternal(); | 194 void DetachFromClientInternal(); |
202 | 195 |
203 private: | 196 private: |
204 bool external_stencil_test_enabled_; | 197 bool external_stencil_test_enabled_; |
205 | 198 |
206 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; | 199 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; |
207 | 200 |
208 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 201 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
209 }; | 202 }; |
210 | 203 |
211 } // namespace cc | 204 } // namespace cc |
212 | 205 |
213 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 206 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
OLD | NEW |