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

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

Issue 251343002: Remove offscreen compositor contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-offscreencontext: include Created 6 years, 8 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
« 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 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() { 13 bool Renderer::IsContextLost() {
14 return false; 14 return false;
15 } 15 }
16 16
17 RendererCapabilitiesImpl::RendererCapabilitiesImpl() 17 RendererCapabilitiesImpl::RendererCapabilitiesImpl()
18 : best_texture_format(RGBA_8888), 18 : best_texture_format(RGBA_8888),
19 allow_partial_texture_updates(false), 19 allow_partial_texture_updates(false),
20 using_offscreen_context3d(false),
21 max_texture_size(0), 20 max_texture_size(0),
22 using_shared_memory_resources(false), 21 using_shared_memory_resources(false),
23 using_partial_swap(false), 22 using_partial_swap(false),
24 using_egl_image(false), 23 using_egl_image(false),
25 avoid_pow2_textures(false), 24 avoid_pow2_textures(false),
26 using_map_image(false), 25 using_map_image(false),
27 using_discard_framebuffer(false), 26 using_discard_framebuffer(false),
28 allow_rasterize_on_demand(false) {} 27 allow_rasterize_on_demand(false) {}
29 28
30 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {} 29 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {}
31 30
32 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const { 31 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const {
33 return RendererCapabilities(best_texture_format, 32 return RendererCapabilities(best_texture_format,
34 allow_partial_texture_updates, 33 allow_partial_texture_updates,
35 using_offscreen_context3d,
36 max_texture_size, 34 max_texture_size,
37 using_shared_memory_resources); 35 using_shared_memory_resources);
38 } 36 }
39 37
40 } // namespace cc 38 } // 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