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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 gfx::Size surface_size_; | 154 gfx::Size surface_size_; |
155 float device_scale_factor_; | 155 float device_scale_factor_; |
156 | 156 |
157 void CommitVSyncParameters(base::TimeTicks timebase, | 157 void CommitVSyncParameters(base::TimeTicks timebase, |
158 base::TimeDelta interval); | 158 base::TimeDelta interval); |
159 | 159 |
160 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); | 160 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); |
161 void ReclaimResources(const CompositorFrameAck* ack); | 161 void ReclaimResources(const CompositorFrameAck* ack); |
162 void DidLoseOutputSurface(); | 162 void DidLoseOutputSurface(); |
163 void SetExternalStencilTest(bool enabled); | 163 void SetExternalStencilTest(bool enabled); |
164 void SetExternalDrawConstraints(const gfx::Transform& transform, | 164 void SetExternalDrawConstraints( |
165 const gfx::Rect& viewport, | 165 const gfx::Transform& transform, |
166 const gfx::Rect& clip, | 166 const gfx::Rect& viewport, |
167 bool resourceless_software_draw); | 167 const gfx::Rect& clip, |
| 168 const gfx::Rect& viewport_rect_for_tile_priority, |
| 169 const gfx::Transform& transform_for_tile_priority, |
| 170 bool resourceless_software_draw); |
168 | 171 |
169 private: | 172 private: |
170 void SetUpContext3d(); | 173 void SetUpContext3d(); |
171 void ResetContext3d(); | 174 void ResetContext3d(); |
172 void SetMemoryPolicy(const ManagedMemoryPolicy& policy); | 175 void SetMemoryPolicy(const ManagedMemoryPolicy& policy); |
173 | 176 |
174 bool external_stencil_test_enabled_; | 177 bool external_stencil_test_enabled_; |
175 | 178 |
176 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; | 179 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; |
177 | 180 |
178 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 181 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
179 }; | 182 }; |
180 | 183 |
181 } // namespace cc | 184 } // namespace cc |
182 | 185 |
183 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 186 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
OLD | NEW |