diff options
-rw-r--r-- | cc/output/gl_renderer.cc | 1 | ||||
-rw-r--r-- | content/browser/renderer_host/render_widget_host_view_android.cc | 5 | ||||
-rw-r--r-- | content/common/gpu/client/gl_helper.cc | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc index 40510f6..54f74c4 100644 --- a/cc/output/gl_renderer.cc +++ b/cc/output/gl_renderer.cc @@ -2194,6 +2194,7 @@ void GLRenderer::EnsureScissorTestDisabled() { void GLRenderer::CopyCurrentRenderPassToBitmap( DrawingFrame* frame, scoped_ptr<CopyOutputRequest> request) { + TRACE_EVENT0("cc", "GLRenderer::CopyCurrentRenderPassToBitmap"); gfx::Rect copy_rect = frame->current_render_pass->output_rect; if (request->has_area()) copy_rect.Intersect(request->area()); diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc index 19b64c6..e77d7f3 100644 --- a/content/browser/renderer_host/render_widget_host_view_android.cc +++ b/content/browser/renderer_host/render_widget_host_view_android.cc @@ -97,6 +97,8 @@ void CopyFromCompositingSurfaceFinished( const base::TimeTicks& start_time, scoped_ptr<SkAutoLockPixels> bitmap_pixels_lock, bool result) { + TRACE_EVENT0( + "cc", "RenderWidgetHostViewAndroid::CopyFromCompositingSurfaceFinished"); bitmap_pixels_lock.reset(); release_callback->Run(0, false); UMA_HISTOGRAM_TIMES(kAsyncReadBackString, @@ -731,6 +733,7 @@ void RenderWidgetHostViewAndroid::CopyFromCompositingSurface( const gfx::Size& dst_size, const base::Callback<void(bool, const SkBitmap&)>& callback, const SkColorType color_type) { + TRACE_EVENT0("cc", "RenderWidgetHostViewAndroid::CopyFromCompositingSurface"); if ((!host_ || host_->is_hidden()) || !IsReadbackConfigSupported(color_type)) { callback.Run(false, SkBitmap()); @@ -1543,6 +1546,8 @@ void RenderWidgetHostViewAndroid::PrepareTextureCopyOutputResult( scoped_ptr<cc::CopyOutputResult> result) { base::ScopedClosureRunner scoped_callback_runner( base::Bind(callback, false, SkBitmap())); + TRACE_EVENT0("cc", + "RenderWidgetHostViewAndroid::PrepareTextureCopyOutputResult"); if (!result->HasTexture() || result->IsEmpty() || result->size().IsEmpty()) return; diff --git a/content/common/gpu/client/gl_helper.cc b/content/common/gpu/client/gl_helper.cc index c3f9f37..eac9e12 100644 --- a/content/common/gpu/client/gl_helper.cc +++ b/content/common/gpu/client/gl_helper.cc @@ -413,6 +413,7 @@ void GLHelper::CopyTextureToImpl::ReadbackAsync( GLenum type, size_t bytes_per_pixel, const base::Callback<void(bool)>& callback) { + TRACE_EVENT0("mirror", "GLHelper::CopyTextureToImpl::ReadbackAsync"); Request* request = new Request(dst_size, bytes_per_row, row_stride_bytes, out, callback); request_queue_.push(request); |