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 #include "cc/output/renderer.h" | 5 #include "cc/output/renderer.h" |
6 | 6 |
7 namespace cc { | 7 namespace cc { |
8 | 8 |
9 bool Renderer::HasAllocatedResourcesForTesting(RenderPass::Id id) const { | 9 bool Renderer::HasAllocatedResourcesForTesting(RenderPass::Id id) const { |
10 return false; | 10 return false; |
11 } | 11 } |
12 | 12 |
13 bool Renderer::IsContextLost() { | 13 bool Renderer::IsContextLost() { |
14 return false; | 14 return false; |
15 } | 15 } |
16 | 16 |
17 RendererCapabilitiesImpl::RendererCapabilitiesImpl() | 17 RendererCapabilitiesImpl::RendererCapabilitiesImpl() |
18 : best_texture_format(RGBA_8888), | 18 : best_texture_format(RGBA_8888), |
19 allow_partial_texture_updates(false), | 19 allow_partial_texture_updates(false), |
20 using_offscreen_context3d(false), | 20 using_offscreen_context3d(false), |
21 max_texture_size(0), | 21 max_texture_size(0), |
22 using_shared_memory_resources(false), | 22 using_shared_memory_resources(false), |
23 using_partial_swap(false), | 23 using_partial_swap(false), |
24 using_egl_image(false), | 24 using_egl_image(false), |
25 avoid_pow2_textures(false), | 25 avoid_pow2_textures(false), |
26 using_map_image(false), | 26 using_map_image(false), |
27 using_discard_framebuffer(false) {} | 27 using_discard_framebuffer(false), |
| 28 allow_rasterize_on_demand(false) {} |
28 | 29 |
29 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {} | 30 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {} |
30 | 31 |
31 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const { | 32 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const { |
32 return RendererCapabilities(best_texture_format, | 33 return RendererCapabilities(best_texture_format, |
33 allow_partial_texture_updates, | 34 allow_partial_texture_updates, |
34 using_offscreen_context3d, | 35 using_offscreen_context3d, |
35 max_texture_size, | 36 max_texture_size, |
36 using_shared_memory_resources); | 37 using_shared_memory_resources); |
37 } | 38 } |
38 | 39 |
39 } // namespace cc | 40 } // namespace cc |
OLD | NEW |