| 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_DIRECT_RENDERER_H_ | 5 #ifndef CC_OUTPUT_DIRECT_RENDERER_H_ |
| 6 #define CC_OUTPUT_DIRECT_RENDERER_H_ | 6 #define CC_OUTPUT_DIRECT_RENDERER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <unordered_map> | 9 #include <unordered_map> |
| 10 | 10 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 virtual void EnsureScissorTestDisabled() = 0; | 166 virtual void EnsureScissorTestDisabled() = 0; |
| 167 virtual void DidChangeVisibility() = 0; | 167 virtual void DidChangeVisibility() = 0; |
| 168 virtual void CopyCurrentRenderPassToBitmap( | 168 virtual void CopyCurrentRenderPassToBitmap( |
| 169 DrawingFrame* frame, | 169 DrawingFrame* frame, |
| 170 std::unique_ptr<CopyOutputRequest> request) = 0; | 170 std::unique_ptr<CopyOutputRequest> request) = 0; |
| 171 | 171 |
| 172 gfx::Size surface_size_for_swap_buffers() const { | 172 gfx::Size surface_size_for_swap_buffers() const { |
| 173 return reshape_surface_size_; | 173 return reshape_surface_size_; |
| 174 } | 174 } |
| 175 | 175 |
| 176 bool IsResourcePromotable(ResourceId resource_id); |
| 177 |
| 176 const RendererSettings* const settings_; | 178 const RendererSettings* const settings_; |
| 177 OutputSurface* const output_surface_; | 179 OutputSurface* const output_surface_; |
| 178 ResourceProvider* const resource_provider_; | 180 ResourceProvider* const resource_provider_; |
| 179 // This can be replaced by test implementations. | 181 // This can be replaced by test implementations. |
| 180 std::unique_ptr<OverlayProcessor> overlay_processor_; | 182 std::unique_ptr<OverlayProcessor> overlay_processor_; |
| 181 | 183 |
| 182 // Whether it's valid to SwapBuffers with an empty rect. Trivially true when | 184 // Whether it's valid to SwapBuffers with an empty rect. Trivially true when |
| 183 // using partial swap. | 185 // using partial swap. |
| 184 bool allow_empty_swap_; | 186 bool allow_empty_swap_; |
| 185 // Whether partial swap can be used. | 187 // Whether partial swap can be used. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 214 float reshape_device_scale_factor_ = 0.f; | 216 float reshape_device_scale_factor_ = 0.f; |
| 215 gfx::ColorSpace reshape_device_color_space_; | 217 gfx::ColorSpace reshape_device_color_space_; |
| 216 bool reshape_has_alpha_ = false; | 218 bool reshape_has_alpha_ = false; |
| 217 | 219 |
| 218 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); | 220 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); |
| 219 }; | 221 }; |
| 220 | 222 |
| 221 } // namespace cc | 223 } // namespace cc |
| 222 | 224 |
| 223 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ | 225 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ |
| OLD | NEW |