| 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; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 using_discard_framebuffer(false) {} | 27 using_discard_framebuffer(false) {} |
| 28 | 28 |
| 29 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {} | 29 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {} |
| 30 | 30 |
| 31 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const { | 31 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const { |
| 32 return RendererCapabilities(best_texture_format, | 32 return RendererCapabilities(best_texture_format, |
| 33 allow_partial_texture_updates, | 33 allow_partial_texture_updates, |
| 34 using_offscreen_context3d, | 34 using_offscreen_context3d, |
| 35 max_texture_size, | 35 max_texture_size, |
| 36 using_shared_memory_resources); | 36 using_shared_memory_resources); |
| 37 |
| 38 } |
| 39 |
| 40 bool RendererCapabilitiesImpl::Equals( |
| 41 const RendererCapabilities& main_caps) const { |
| 42 return best_texture_format == main_caps.best_texture_format && |
| 43 allow_partial_texture_updates == |
| 44 main_caps.allow_partial_texture_updates && |
| 45 using_offscreen_context3d == main_caps.using_offscreen_context3d && |
| 46 max_texture_size == main_caps.max_texture_size && |
| 47 using_shared_memory_resources == |
| 48 main_caps.using_shared_memory_resources; |
| 37 } | 49 } |
| 38 | 50 |
| 39 } // namespace cc | 51 } // namespace cc |
| OLD | NEW |