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

Unified Diff: gpu/command_buffer/service/gpu_tracer.cc

Issue 500243002: Remove implicit conversions from scoped_refptr to T* in gpu/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert silliness 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/gpu_tracer.cc
diff --git a/gpu/command_buffer/service/gpu_tracer.cc b/gpu/command_buffer/service/gpu_tracer.cc
index edd206d19a47537d12592767d163e836cc664cf4..b1c9f23e4858f5a68ac1c1e3b161c956c02d56ee 100644
--- a/gpu/command_buffer/service/gpu_tracer.cc
+++ b/gpu/command_buffer/service/gpu_tracer.cc
@@ -196,7 +196,7 @@ bool GPUTracer::EndDecoding() {
if (IsTracing()) {
for (int n = 0; n < NUM_TRACER_SOURCES; n++) {
for (size_t i = 0; i < markers_[n].size(); i++) {
- if (markers_[n][i].trace_) {
+ if (markers_[n][i].trace_.get()) {
markers_[n][i].trace_->End();
if (markers_[n][i].trace_->IsEnabled())
traces_.push_back(markers_[n][i].trace_);
@@ -244,7 +244,7 @@ bool GPUTracer::End(GpuTracerSource source) {
if (!markers_[source].empty()) {
if (IsTracing()) {
scoped_refptr<GPUTrace> trace = markers_[source].back().trace_;
- if (trace) {
+ if (trace.get()) {
trace->End();
if (trace->IsEnabled())
traces_.push_back(trace);
« no previous file with comments | « gpu/command_buffer/service/gpu_service_test.cc ('k') | gpu/command_buffer/service/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698