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

Unified Diff: webkit/common/gpu/webgraphicscontext3d_in_process_impl.cc

Issue 16155009: Update webkit/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: webkit/common/gpu/webgraphicscontext3d_in_process_impl.cc
diff --git a/webkit/common/gpu/webgraphicscontext3d_in_process_impl.cc b/webkit/common/gpu/webgraphicscontext3d_in_process_impl.cc
index 782a750ca7b58415570d0b4a0ae34e435b03bb05..ec5517072907a85092640cba6c20960800d3331e 100644
--- a/webkit/common/gpu/webgraphicscontext3d_in_process_impl.cc
+++ b/webkit/common/gpu/webgraphicscontext3d_in_process_impl.cc
@@ -125,7 +125,7 @@ WebGraphicsContext3DInProcessImpl::CreateForWindow(
scoped_refptr<gfx::GLSurface> gl_surface =
gfx::GLSurface::CreateViewGLSurface(false, window);
- if (!gl_surface)
+ if (!gl_surface.get())
return NULL;
gfx::GpuPreference gpu_preference = gfx::PreferDiscreteGpu;
@@ -134,7 +134,7 @@ WebGraphicsContext3DInProcessImpl::CreateForWindow(
share_group,
gl_surface.get(),
gpu_preference);
- if (!gl_context)
+ if (!gl_context.get())
return NULL;
scoped_ptr<WebGraphicsContext3DInProcessImpl> context(
new WebGraphicsContext3DInProcessImpl(
@@ -162,7 +162,7 @@ bool WebGraphicsContext3DInProcessImpl::Initialize(
if (render_directly_to_web_view_)
attributes_.antialias = false;
- if (!gl_context_->MakeCurrent(gl_surface_)) {
+ if (!gl_context_->MakeCurrent(gl_surface_.get())) {
gl_context_ = NULL;
return false;
}
« no previous file with comments | « webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc ('k') | webkit/dom_storage/dom_storage_area.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698