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

Unified Diff: content/browser/media/capture/web_contents_video_capture_device.cc

Issue 1031813002: Use proper tracing category in image/tab capture trace logs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reuploaded patchset! Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/media/capture/video_capture_oracle.cc ('k') | content/common/gpu/client/gl_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/capture/web_contents_video_capture_device.cc
diff --git a/content/browser/media/capture/web_contents_video_capture_device.cc b/content/browser/media/capture/web_contents_video_capture_device.cc
index 0d1a01fb8167cd6c09a34bd0abd4a06b978804ba..8380682fc5064f11b55813af04cb4549994a244e 100644
--- a/content/browser/media/capture/web_contents_video_capture_device.cc
+++ b/content/browser/media/capture/web_contents_video_capture_device.cc
@@ -294,7 +294,7 @@ bool FrameSubscriber::ShouldCaptureFrame(
base::TimeTicks present_time,
scoped_refptr<media::VideoFrame>* storage,
DeliverFrameCallback* deliver_frame_cb) {
- TRACE_EVENT1("mirroring", "FrameSubscriber::ShouldCaptureFrame",
+ TRACE_EVENT1("gpu.capture", "FrameSubscriber::ShouldCaptureFrame",
"instance", this);
ThreadSafeCaptureOracle::CaptureFrameCallback capture_frame_cb;
@@ -355,7 +355,7 @@ ContentCaptureSubscription::~ContentCaptureSubscription() {
void ContentCaptureSubscription::OnTimer() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
- TRACE_EVENT0("mirroring", "ContentCaptureSubscription::OnTimer");
+ TRACE_EVENT0("gpu.capture", "ContentCaptureSubscription::OnTimer");
scoped_refptr<media::VideoFrame> frame;
RenderWidgetHostViewFrameSubscriber::DeliverFrameCallback deliver_frame_cb;
@@ -414,7 +414,8 @@ void RenderVideoFrame(const SkBitmap& input,
method = skia::ImageOperations::RESIZE_BOX;
}
- TRACE_EVENT_ASYNC_STEP_INTO0("mirroring", "Capture", output.get(), "Scale");
+ TRACE_EVENT_ASYNC_STEP_INTO0("gpu.capture",
+ "Capture", output.get(), "Scale");
scaled_bitmap = skia::ImageOperations::Resize(input, method,
region_in_frame.width(),
region_in_frame.height());
@@ -422,7 +423,7 @@ void RenderVideoFrame(const SkBitmap& input,
scaled_bitmap = input;
}
- TRACE_EVENT_ASYNC_STEP_INTO0("mirroring", "Capture", output.get(), "YUV");
+ TRACE_EVENT_ASYNC_STEP_INTO0("gpu.capture", "Capture", output.get(), "YUV");
{
SkAutoLockPixels scaled_bitmap_locker(scaled_bitmap);
@@ -627,7 +628,7 @@ void WebContentsCaptureMachine::DidCopyFromBackingStore(
DCHECK(render_thread_.get());
if (response == READBACK_SUCCESS) {
UMA_HISTOGRAM_TIMES("TabCapture.CopyTimeBitmap", now - start_time);
- TRACE_EVENT_ASYNC_STEP_INTO0("mirroring", "Capture", target.get(),
+ TRACE_EVENT_ASYNC_STEP_INTO0("gpu.capture", "Capture", target.get(),
"Render");
render_thread_->message_loop_proxy()->PostTask(FROM_HERE, base::Bind(
&RenderVideoFrame, bitmap, target,
« no previous file with comments | « content/browser/media/capture/video_capture_oracle.cc ('k') | content/common/gpu/client/gl_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698