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

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

Issue 157743007: cc: Prevent usage of rasterize on-demand with delegating renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: one more unit test 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/delegating_renderer.cc ('k') | cc/output/renderer.h » ('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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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/gl_renderer.h" 5 #include "cc/output/gl_renderer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 capabilities_.avoid_pow2_textures = context_caps.gpu.fast_npot_mo8_textures; 200 capabilities_.avoid_pow2_textures = context_caps.gpu.fast_npot_mo8_textures;
201 201
202 capabilities_.using_offscreen_context3d = true; 202 capabilities_.using_offscreen_context3d = true;
203 203
204 capabilities_.using_map_image = 204 capabilities_.using_map_image =
205 settings_->use_map_image && context_caps.gpu.map_image; 205 settings_->use_map_image && context_caps.gpu.map_image;
206 206
207 capabilities_.using_discard_framebuffer = 207 capabilities_.using_discard_framebuffer =
208 context_caps.gpu.discard_framebuffer; 208 context_caps.gpu.discard_framebuffer;
209 209
210 capabilities_.allow_rasterize_on_demand = true;
211
210 InitializeSharedObjects(); 212 InitializeSharedObjects();
211 } 213 }
212 214
213 GLRenderer::~GLRenderer() { 215 GLRenderer::~GLRenderer() {
214 while (!pending_async_read_pixels_.empty()) { 216 while (!pending_async_read_pixels_.empty()) {
215 PendingAsyncReadPixels* pending_read = pending_async_read_pixels_.back(); 217 PendingAsyncReadPixels* pending_read = pending_async_read_pixels_.back();
216 pending_read->finished_read_pixels_callback.Cancel(); 218 pending_read->finished_read_pixels_callback.Cancel();
217 pending_async_read_pixels_.pop_back(); 219 pending_async_read_pixels_.pop_back();
218 } 220 }
219 221
(...skipping 2783 matching lines...) Expand 10 before | Expand all | Expand 10 after
3003 is_scissor_enabled_ = false; 3005 is_scissor_enabled_ = false;
3004 GLC(gl_, gl_->Disable(GL_SCISSOR_TEST)); 3006 GLC(gl_, gl_->Disable(GL_SCISSOR_TEST));
3005 scissor_rect_needs_reset_ = true; 3007 scissor_rect_needs_reset_ = true;
3006 } 3008 }
3007 3009
3008 bool GLRenderer::IsContextLost() { 3010 bool GLRenderer::IsContextLost() {
3009 return output_surface_->context_provider()->IsContextLost(); 3011 return output_surface_->context_provider()->IsContextLost();
3010 } 3012 }
3011 3013
3012 } // namespace cc 3014 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/delegating_renderer.cc ('k') | cc/output/renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698