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 18 matching lines...) Expand all Loading... | |
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 } | 37 } |
38 | 38 |
39 bool RendererCapabilitiesImpl::Equals( | |
danakj
2014/02/11 19:58:59
This should move to RendererCapabilities (main thr
boliu
2014/02/11 21:44:07
Done.
| |
40 const RendererCapabilities& main_caps) const { | |
41 return best_texture_format == main_caps.best_texture_format && | |
42 allow_partial_texture_updates == | |
43 main_caps.allow_partial_texture_updates && | |
44 using_offscreen_context3d == main_caps.using_offscreen_context3d && | |
45 max_texture_size == main_caps.max_texture_size && | |
46 using_shared_memory_resources == | |
47 main_caps.using_shared_memory_resources; | |
48 } | |
49 | |
39 } // namespace cc | 50 } // namespace cc |
OLD | NEW |