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

Unified Diff: content/renderer/pepper/video_decoder_shim.cc

Issue 1132283003: Merge Group Markers into Chromium Traces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make SwapBuffers use the GLES2Decoder GL_Category Created 5 years, 5 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
Index: content/renderer/pepper/video_decoder_shim.cc
diff --git a/content/renderer/pepper/video_decoder_shim.cc b/content/renderer/pepper/video_decoder_shim.cc
index 471d2c5d0e3ffa1e288a8c0f0428ce000708bc6a..512211778a819f102f02f9cc052a8cccb241bbd1 100644
--- a/content/renderer/pepper/video_decoder_shim.cc
+++ b/content/renderer/pepper/video_decoder_shim.cc
@@ -312,8 +312,7 @@ bool VideoDecoderShim::YUVConverter::Initialize() {
return false;
}
- gl_->PushGroupMarkerEXT(0, "YUVConverterContext");
-
+ gl_->TraceBeginCHROMIUM("YUVConverter", "YUVConverterContext");
gl_->GenFramebuffers(1, &frame_buffer_);
y_texture_ = CreateTexture();
@@ -332,7 +331,7 @@ bool VideoDecoderShim::YUVConverter::Initialize() {
program_ = CreateShader();
- gl_->PopGroupMarkerEXT();
+ gl_->TraceEndCHROMIUM();
context_provider_->InvalidateGrContext(kGrInvalidateState);
@@ -414,7 +413,7 @@ void VideoDecoderShim::YUVConverter::Convert(
y_width_ = y_height_ = 0;
}
- gl_->PushGroupMarkerEXT(0, "YUVConverterContext");
+ gl_->TraceBeginCHROMIUM("YUVConverter", "YUVConverterContext");
uint32_t ywidth = frame->coded_size().width();
uint32_t yheight = frame->coded_size().height();
@@ -565,7 +564,7 @@ void VideoDecoderShim::YUVConverter::Convert(
gl_->BindTexture(GL_TEXTURE_2D, 0);
gl_->PixelStorei(GL_UNPACK_ROW_LENGTH, 0);
- gl_->PopGroupMarkerEXT();
+ gl_->TraceEndCHROMIUM();
context_provider_->InvalidateGrContext(kGrInvalidateState);
}
« no previous file with comments | « content/browser/android/in_process/context_provider_in_process.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698