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

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

Issue 1341423006: Removing GL context rate limiting feature and related wrappers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed mojo autogens Created 5 years, 3 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
« no previous file with comments | « cc/output/gl_renderer.h ('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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 for (const auto& quad : pass->quad_list) { 495 for (const auto& quad : pass->quad_list) {
496 for (ResourceId resource_id : quad->resources) 496 for (ResourceId resource_id : quad->resources)
497 resource_provider->WaitSyncPointIfNeeded(resource_id); 497 resource_provider->WaitSyncPointIfNeeded(resource_id);
498 } 498 }
499 } 499 }
500 500
501 // TODO(enne): Do we need to reinitialize all of this state per frame? 501 // TODO(enne): Do we need to reinitialize all of this state per frame?
502 ReinitializeGLState(); 502 ReinitializeGLState();
503 } 503 }
504 504
505 void GLRenderer::DoNoOp() {
506 gl_->BindFramebuffer(GL_FRAMEBUFFER, 0);
507 gl_->Flush();
508 }
509
510 void GLRenderer::DoDrawQuad(DrawingFrame* frame, 505 void GLRenderer::DoDrawQuad(DrawingFrame* frame,
511 const DrawQuad* quad, 506 const DrawQuad* quad,
512 const gfx::QuadF* clip_region) { 507 const gfx::QuadF* clip_region) {
513 DCHECK(quad->rect.Contains(quad->visible_rect)); 508 DCHECK(quad->rect.Contains(quad->visible_rect));
514 if (quad->material != DrawQuad::TEXTURE_CONTENT) { 509 if (quad->material != DrawQuad::TEXTURE_CONTENT) {
515 FlushTextureQuadCache(SHARED_BINDING); 510 FlushTextureQuadCache(SHARED_BINDING);
516 } 511 }
517 512
518 switch (quad->material) { 513 switch (quad->material) {
519 case DrawQuad::INVALID: 514 case DrawQuad::INVALID:
(...skipping 3015 matching lines...) Expand 10 before | Expand all | Expand 10 after
3535 texture_id = pending_overlay_resources_.back()->texture_id(); 3530 texture_id = pending_overlay_resources_.back()->texture_id();
3536 } 3531 }
3537 3532
3538 context_support_->ScheduleOverlayPlane( 3533 context_support_->ScheduleOverlayPlane(
3539 overlay.plane_z_order, overlay.transform, texture_id, 3534 overlay.plane_z_order, overlay.transform, texture_id,
3540 ToNearestRect(overlay.display_rect), overlay.uv_rect); 3535 ToNearestRect(overlay.display_rect), overlay.uv_rect);
3541 } 3536 }
3542 } 3537 }
3543 3538
3544 } // namespace cc 3539 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/gl_renderer.h ('k') | cc/output/renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698