Index: content/browser/renderer_host/compositing_iosurface_mac.mm |
diff --git a/content/browser/renderer_host/compositing_iosurface_mac.mm b/content/browser/renderer_host/compositing_iosurface_mac.mm |
index 6dfdbcc10de5f2211bdd0d66e6272f04d11ea637..ba67fc9df6f78f63efd6ca872d4dfeaf9085b592 100644 |
--- a/content/browser/renderer_host/compositing_iosurface_mac.mm |
+++ b/content/browser/renderer_host/compositing_iosurface_mac.mm |
@@ -50,7 +50,7 @@ scoped_refptr<CompositingIOSurfaceMac> CompositingIOSurfaceMac::Create() { |
scoped_refptr<CompositingIOSurfaceContext> offscreen_context = |
CompositingIOSurfaceContext::Get( |
CompositingIOSurfaceContext::kOffscreenContextWindowNumber); |
- if (!offscreen_context) { |
+ if (!offscreen_context.get()) { |
LOG(ERROR) << "Failed to create context for offscreen operations"; |
return NULL; |
} |
@@ -67,7 +67,7 @@ CompositingIOSurfaceMac::CompositingIOSurfaceMac( |
gl_error_(GL_NO_ERROR), |
eviction_queue_iterator_(eviction_queue_.Get().end()), |
eviction_has_been_drawn_since_updated_(false) { |
- CHECK(offscreen_context_); |
+ CHECK(offscreen_context_.get()); |
} |
CompositingIOSurfaceMac::~CompositingIOSurfaceMac() { |