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

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

Issue 446973002: LayerTreeHostImpl knows if it has an output surface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't test calling InitializeRenderer twice in a row 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(RenderPass::Id id) const {
10 return false; 10 return false;
11 } 11 }
12 12
13 bool Renderer::IsContextLost() {
14 return false;
15 }
16
17 void Renderer::SetVisible(bool visible) { 13 void Renderer::SetVisible(bool visible) {
18 if (visible_ == visible) 14 if (visible_ == visible)
19 return; 15 return;
20 16
21 visible_ = visible; 17 visible_ = visible;
22 DidChangeVisibility(); 18 DidChangeVisibility();
23 } 19 }
24 20
25 RendererCapabilitiesImpl::RendererCapabilitiesImpl() 21 RendererCapabilitiesImpl::RendererCapabilitiesImpl()
26 : best_texture_format(RGBA_8888), 22 : best_texture_format(RGBA_8888),
27 allow_partial_texture_updates(false), 23 allow_partial_texture_updates(false),
28 max_texture_size(0), 24 max_texture_size(0),
29 using_shared_memory_resources(false), 25 using_shared_memory_resources(false),
30 using_partial_swap(false), 26 using_partial_swap(false),
31 using_egl_image(false), 27 using_egl_image(false),
32 using_map_image(false), 28 using_map_image(false),
33 using_discard_framebuffer(false), 29 using_discard_framebuffer(false),
34 allow_rasterize_on_demand(false) {} 30 allow_rasterize_on_demand(false) {}
35 31
36 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {} 32 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {}
37 33
38 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const { 34 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const {
39 return RendererCapabilities(best_texture_format, 35 return RendererCapabilities(best_texture_format,
40 allow_partial_texture_updates, 36 allow_partial_texture_updates,
41 max_texture_size, 37 max_texture_size,
42 using_shared_memory_resources); 38 using_shared_memory_resources);
43 } 39 }
44 40
45 } // namespace cc 41 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698