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

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

Issue 404563005: Make RenderPass::Id an isolated class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 4 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
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(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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698