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

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

Issue 424543003: Add relevant traces to measure copyFromCompositingSurface Turn-around time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_android.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 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 2176 matching lines...) Expand 10 before | Expand all | Expand 10 after
2187 return; 2187 return;
2188 2188
2189 FlushTextureQuadCache(); 2189 FlushTextureQuadCache();
2190 GLC(gl_, gl_->Disable(GL_SCISSOR_TEST)); 2190 GLC(gl_, gl_->Disable(GL_SCISSOR_TEST));
2191 is_scissor_enabled_ = false; 2191 is_scissor_enabled_ = false;
2192 } 2192 }
2193 2193
2194 void GLRenderer::CopyCurrentRenderPassToBitmap( 2194 void GLRenderer::CopyCurrentRenderPassToBitmap(
2195 DrawingFrame* frame, 2195 DrawingFrame* frame,
2196 scoped_ptr<CopyOutputRequest> request) { 2196 scoped_ptr<CopyOutputRequest> request) {
2197 TRACE_EVENT0("cc", "GLRenderer::CopyCurrentRenderPassToBitmap");
2197 gfx::Rect copy_rect = frame->current_render_pass->output_rect; 2198 gfx::Rect copy_rect = frame->current_render_pass->output_rect;
2198 if (request->has_area()) 2199 if (request->has_area())
2199 copy_rect.Intersect(request->area()); 2200 copy_rect.Intersect(request->area());
2200 GetFramebufferPixelsAsync(copy_rect, request.Pass()); 2201 GetFramebufferPixelsAsync(copy_rect, request.Pass());
2201 } 2202 }
2202 2203
2203 void GLRenderer::ToGLMatrix(float* gl_matrix, const gfx::Transform& transform) { 2204 void GLRenderer::ToGLMatrix(float* gl_matrix, const gfx::Transform& transform) {
2204 transform.matrix().asColMajorf(gl_matrix); 2205 transform.matrix().asColMajorf(gl_matrix);
2205 } 2206 }
2206 2207
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
3195 context_support_->ScheduleOverlayPlane( 3196 context_support_->ScheduleOverlayPlane(
3196 overlay.plane_z_order, 3197 overlay.plane_z_order,
3197 overlay.transform, 3198 overlay.transform,
3198 pending_overlay_resources_.back()->texture_id(), 3199 pending_overlay_resources_.back()->texture_id(),
3199 overlay.display_rect, 3200 overlay.display_rect,
3200 overlay.uv_rect); 3201 overlay.uv_rect);
3201 } 3202 }
3202 } 3203 }
3203 3204
3204 } // namespace cc 3205 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698