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