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

Unified Diff: content/renderer/gpu/compositor_output_surface.cc

Issue 16294003: Update content/ 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
« no previous file with comments | « content/renderer/dom_storage/webstoragearea_impl.cc ('k') | content/renderer/gpu/input_event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/compositor_output_surface.cc
diff --git a/content/renderer/gpu/compositor_output_surface.cc b/content/renderer/gpu/compositor_output_surface.cc
index 16d6ad0dd50473f2316acba2f958a1ee5e6b824f..55af86511874200491b0fe4375394b73aa1c2948 100644
--- a/content/renderer/gpu/compositor_output_surface.cc
+++ b/content/renderer/gpu/compositor_output_surface.cc
@@ -58,13 +58,13 @@ CompositorOutputSurface::CompositorOutputSurface(
routing_id_(routing_id),
prefers_smoothness_(false),
main_thread_handle_(base::PlatformThread::CurrentHandle()) {
- DCHECK(output_surface_filter_);
+ DCHECK(output_surface_filter_.get());
CommandLine* command_line = CommandLine::ForCurrentProcess();
capabilities_.has_parent_compositor = command_line->HasSwitch(
switches::kEnableDelegatedRenderer);
DetachFromThread();
message_sender_ = RenderThreadImpl::current()->sync_message_filter();
- DCHECK(message_sender_);
+ DCHECK(message_sender_.get());
}
CompositorOutputSurface::~CompositorOutputSurface() {
@@ -72,7 +72,7 @@ CompositorOutputSurface::~CompositorOutputSurface() {
if (!client_)
return;
UpdateSmoothnessTakesPriority(false);
- if (output_surface_proxy_)
+ if (output_surface_proxy_.get())
output_surface_proxy_->ClearOutputSurface();
output_surface_filter_->RemoveRoute(routing_id_);
}
« no previous file with comments | « content/renderer/dom_storage/webstoragearea_impl.cc ('k') | content/renderer/gpu/input_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698