| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 gfx::Size surface_size_; | 156 gfx::Size surface_size_; |
| 157 float device_scale_factor_; | 157 float device_scale_factor_; |
| 158 | 158 |
| 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( |
| 167 const gfx::Rect& viewport, | 167 const gfx::Transform& transform, |
| 168 const gfx::Rect& clip, | 168 const gfx::Rect& viewport, |
| 169 bool resourceless_software_draw); | 169 const gfx::Rect& clip, |
| 170 const gfx::Rect& external_tiling_rect, |
| 171 const gfx::Transform& external_tiling_transform, |
| 172 bool resourceless_software_draw); |
| 170 | 173 |
| 171 private: | 174 private: |
| 172 void SetUpContext3d(); | 175 void SetUpContext3d(); |
| 173 void ResetContext3d(); | 176 void ResetContext3d(); |
| 174 void SetMemoryPolicy(const ManagedMemoryPolicy& policy); | 177 void SetMemoryPolicy(const ManagedMemoryPolicy& policy); |
| 175 | 178 |
| 176 bool external_stencil_test_enabled_; | 179 bool external_stencil_test_enabled_; |
| 177 | 180 |
| 178 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; | 181 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; |
| 179 | 182 |
| 180 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 183 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
| 181 }; | 184 }; |
| 182 | 185 |
| 183 } // namespace cc | 186 } // namespace cc |
| 184 | 187 |
| 185 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 188 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
| OLD | NEW |