| 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" | 7 #include "cc/quads/render_pass_id.h" |
| 8 | 8 |
| 9 namespace cc { | 9 namespace cc { |
| 10 | 10 |
| 11 bool Renderer::CanRender(const RenderPassList& render_passes) const { |
| 12 return true; |
| 13 } |
| 14 |
| 11 bool Renderer::HasAllocatedResourcesForTesting(RenderPassId id) const { | 15 bool Renderer::HasAllocatedResourcesForTesting(RenderPassId id) const { |
| 12 return false; | 16 return false; |
| 13 } | 17 } |
| 14 | 18 |
| 15 void Renderer::SetVisible(bool visible) { | 19 void Renderer::SetVisible(bool visible) { |
| 16 if (visible_ == visible) | 20 if (visible_ == visible) |
| 17 return; | 21 return; |
| 18 | 22 |
| 19 visible_ = visible; | 23 visible_ = visible; |
| 20 DidChangeVisibility(); | 24 DidChangeVisibility(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 36 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {} | 40 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {} |
| 37 | 41 |
| 38 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const { | 42 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const { |
| 39 return RendererCapabilities(best_texture_format, | 43 return RendererCapabilities(best_texture_format, |
| 40 allow_partial_texture_updates, | 44 allow_partial_texture_updates, |
| 41 max_texture_size, | 45 max_texture_size, |
| 42 using_shared_memory_resources); | 46 using_shared_memory_resources); |
| 43 } | 47 } |
| 44 | 48 |
| 45 } // namespace cc | 49 } // namespace cc |
| OLD | NEW |