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

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

Issue 2194013002: cc: Delete the Renderer base class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dcheck-delegating
Patch Set: delete-renderer-base-class: rebase Created 4 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 #include "cc/quads/render_pass_id.h" 7 #include "cc/quads/render_pass_id.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
11 bool Renderer::HasAllocatedResourcesForTesting(RenderPassId id) const {
12 return false;
13 }
14
15 void Renderer::SetVisible(bool visible) {
16 if (visible_ == visible)
17 return;
18
19 visible_ = visible;
20 DidChangeVisibility();
21 }
22
23 RendererCapabilitiesImpl::RendererCapabilitiesImpl() 11 RendererCapabilitiesImpl::RendererCapabilitiesImpl()
24 : best_texture_format(RGBA_8888), 12 : best_texture_format(RGBA_8888),
25 allow_partial_texture_updates(false), 13 allow_partial_texture_updates(false),
26 max_texture_size(0), 14 max_texture_size(0),
27 using_shared_memory_resources(false), 15 using_shared_memory_resources(false),
28 using_partial_swap(false), 16 using_partial_swap(false),
29 allow_empty_swap(false), 17 allow_empty_swap(false),
30 using_egl_image(false), 18 using_egl_image(false),
31 using_image(false), 19 using_image(false),
32 using_discard_framebuffer(false), 20 using_discard_framebuffer(false),
33 allow_rasterize_on_demand(false), 21 allow_rasterize_on_demand(false),
34 max_msaa_samples(0) {} 22 max_msaa_samples(0) {}
35 23
36 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {} 24 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {}
37 25
38 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const { 26 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const {
39 return RendererCapabilities(best_texture_format, 27 return RendererCapabilities(best_texture_format,
40 allow_partial_texture_updates, 28 allow_partial_texture_updates,
41 max_texture_size, 29 max_texture_size,
42 using_shared_memory_resources); 30 using_shared_memory_resources);
43 } 31 }
44 32
45 } // namespace cc 33 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698