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

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

Issue 16293004: Update gpu/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 7 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 85814997769274d67201f530fcc6ac6dca046fa5..76485c6219a54d5485d648110564deabb24aa3c8 100644
--- a/gpu/command_buffer/service/gpu_tracer.cc
+++ b/gpu/command_buffer/service/gpu_tracer.cc
@@ -237,7 +237,7 @@ void GLARBTimerTrace::Process() {
bool GPUTracerImpl::Begin(const std::string& name) {
// Make sure we are not nesting trace commands.
- if (current_trace_)
+ if (current_trace_.get())
return false;
current_trace_ = CreateTrace(name);
@@ -246,7 +246,7 @@ bool GPUTracerImpl::Begin(const std::string& name) {
}
bool GPUTracerImpl::End() {
- if (!current_trace_)
+ if (!current_trace_.get())
return false;
current_trace_->End();
@@ -270,7 +270,7 @@ void GPUTracerImpl::Process() {
}
const std::string& GPUTracerImpl::CurrentName() const {
- if (!current_trace_)
+ if (!current_trace_.get())
return EmptyString();
return current_trace_->name();
}
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc ('k') | gpu/command_buffer/service/image_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698