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

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

Issue 151003010: Merge 250273 "cc: Prevent usage of rasterize on-demand with dele..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1833/src/
Patch Set: Created 6 years, 10 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/software_renderer.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), 20 using_offscreen_context3d(false),
21 max_texture_size(0), 21 max_texture_size(0),
22 using_shared_memory_resources(false), 22 using_shared_memory_resources(false),
23 using_partial_swap(false), 23 using_partial_swap(false),
24 using_egl_image(false), 24 using_egl_image(false),
25 avoid_pow2_textures(false), 25 avoid_pow2_textures(false),
26 using_map_image(false), 26 using_map_image(false),
27 using_discard_framebuffer(false) {} 27 using_discard_framebuffer(false),
28 allow_rasterize_on_demand(false) {}
28 29
29 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {} 30 RendererCapabilitiesImpl::~RendererCapabilitiesImpl() {}
30 31
31 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const { 32 RendererCapabilities RendererCapabilitiesImpl::MainThreadCapabilities() const {
32 return RendererCapabilities(best_texture_format, 33 return RendererCapabilities(best_texture_format,
33 allow_partial_texture_updates, 34 allow_partial_texture_updates,
34 using_offscreen_context3d, 35 using_offscreen_context3d,
35 max_texture_size, 36 max_texture_size,
36 using_shared_memory_resources); 37 using_shared_memory_resources);
37 } 38 }
38 39
39 } // namespace cc 40 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/renderer.h ('k') | cc/output/software_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698