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

Unified Diff: content/browser/compositor/browser_compositor_output_surface.cc

Issue 500953005: Remove implicit conversions from scoped_refptr to T* in content/browser/compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Manual corretions 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
« no previous file with comments | « no previous file | content/browser/compositor/delegated_frame_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/browser_compositor_output_surface.cc
diff --git a/content/browser/compositor/browser_compositor_output_surface.cc b/content/browser/compositor/browser_compositor_output_surface.cc
index b0f826c06161536d61f5be6de65b9746c6df5d83..b1e550162f026e98b0046e7698517ba47579e7e8 100644
--- a/content/browser/compositor/browser_compositor_output_surface.cc
+++ b/content/browser/compositor/browser_compositor_output_surface.cc
@@ -38,9 +38,9 @@ BrowserCompositorOutputSurface::BrowserCompositorOutputSurface(
BrowserCompositorOutputSurface::~BrowserCompositorOutputSurface() {
DCHECK(CalledOnValidThread());
- if (reflector_)
+ if (reflector_.get())
reflector_->DetachFromOutputSurface();
- DCHECK(!reflector_);
+ DCHECK(!reflector_.get());
if (!HasClient())
return;
output_surface_map_->Remove(surface_id_);
@@ -62,7 +62,7 @@ bool BrowserCompositorOutputSurface::BindToClient(
return false;
output_surface_map_->AddWithID(this, surface_id_);
- if (reflector_)
+ if (reflector_.get())
reflector_->OnSourceSurfaceReady(this);
vsync_manager_->AddObserver(this);
return true;
« no previous file with comments | « no previous file | content/browser/compositor/delegated_frame_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698