Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: cc/output/renderer.cc

Issue 151093005: cc: Update Main RendererCapabilities on DeferredInitialize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cancel commits with stale caps, no tests yet Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698