From bbbea1851548ac4bb6195447c6e3e06b796a5f40 Mon Sep 17 00:00:00 2001 From: dcheng Date: Mon, 6 Oct 2014 20:13:20 -0700 Subject: [PATCH] Remove implicit conversions from scoped_refptr to T* in ui/ This patch was generated by running the rewrite_scoped_refptr clang tool on an Android build. BUG=110610 Review URL: https://codereview.chromium.org/624283003 Cr-Commit-Position: refs/heads/master@{#298344} --- ui/gl/gl_image_surface_texture.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/gl/gl_image_surface_texture.cc b/ui/gl/gl_image_surface_texture.cc index 78cab6563793..4fed45b6b19a 100644 --- a/ui/gl/gl_image_surface_texture.cc +++ b/ui/gl/gl_image_surface_texture.cc @@ -15,18 +15,18 @@ GLImageSurfaceTexture::GLImageSurfaceTexture(const gfx::Size& size) } GLImageSurfaceTexture::~GLImageSurfaceTexture() { - DCHECK(!surface_texture_); + DCHECK(!surface_texture_.get()); DCHECK_EQ(0, texture_id_); } bool GLImageSurfaceTexture::Initialize( const gfx::GpuMemoryBufferHandle& handle) { - DCHECK(!surface_texture_); + DCHECK(!surface_texture_.get()); surface_texture_ = SurfaceTextureTracker::GetInstance()->AcquireSurfaceTexture( handle.surface_texture_id.primary_id, handle.surface_texture_id.secondary_id); - return !!surface_texture_; + return !!surface_texture_.get(); } void GLImageSurfaceTexture::Destroy(bool have_context) { @@ -54,7 +54,7 @@ bool GLImageSurfaceTexture::BindTexImage(unsigned target) { return false; } - DCHECK(surface_texture_); + DCHECK(surface_texture_.get()); if (texture_id != texture_id_) { // Note: Surface textures used as gpu memory buffers are created with an // initial dummy texture id of 0. We need to call DetachFromGLContext() here -- 2.11.4.GIT