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 #include "cc/quads/render_pass_id.h" |
| 8 |
7 namespace cc { | 9 namespace cc { |
8 | 10 |
9 bool Renderer::HasAllocatedResourcesForTesting(RenderPass::Id id) const { | 11 bool Renderer::HasAllocatedResourcesForTesting(RenderPassId id) const { |
10 return false; | 12 return false; |
11 } | 13 } |
12 | 14 |
13 void Renderer::SetVisible(bool visible) { | 15 void Renderer::SetVisible(bool visible) { |
14 if (visible_ == visible) | 16 if (visible_ == visible) |
15 return; | 17 return; |
16 | 18 |
17 visible_ = visible; | 19 visible_ = visible; |
18 DidChangeVisibility(); | 20 DidChangeVisibility(); |
19 } | 21 } |
(...skipping 12 matching lines...) Expand all Loading... |
32 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {} | 34 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {} |
33 | 35 |
34 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const { | 36 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const { |
35 return RendererCapabilities(best_texture_format, | 37 return RendererCapabilities(best_texture_format, |
36 allow_partial_texture_updates, | 38 allow_partial_texture_updates, |
37 max_texture_size, | 39 max_texture_size, |
38 using_shared_memory_resources); | 40 using_shared_memory_resources); |
39 } | 41 } |
40 | 42 |
41 } // namespace cc | 43 } // namespace cc |
OLD | NEW |