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