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

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: one more case in mojo 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
« no previous file with comments | « cc/output/renderer.h ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "cc/quads/render_pass_id.h"
8
7 namespace cc { 9 namespace cc {
8 10
9 bool Renderer::HasAllocatedResourcesForTesting(RenderPass::Id id) const { 11 bool Renderer::HasAllocatedResourcesForTesting(RenderPassId id) const {
10 return false; 12 return false;
11 } 13 }
12 14
13 void Renderer::SetVisible(bool visible) { 15 void Renderer::SetVisible(bool visible) {
14 if (visible_ == visible) 16 if (visible_ == visible)
15 return; 17 return;
16 18
17 visible_ = visible; 19 visible_ = visible;
18 DidChangeVisibility(); 20 DidChangeVisibility();
19 } 21 }
(...skipping 12 matching lines...) Expand all
32 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {} 34 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {}
33 35
34 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const { 36 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const {
35 return RendererCapabilities(best_texture_format, 37 return RendererCapabilities(best_texture_format,
36 allow_partial_texture_updates, 38 allow_partial_texture_updates,
37 max_texture_size, 39 max_texture_size,
38 using_shared_memory_resources); 40 using_shared_memory_resources);
39 } 41 }
40 42
41 } // namespace cc 43 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/renderer.h ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698