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

Unified Diff: content/common/gpu/texture_image_transport_surface.cc

Issue 14081010: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some gtk issues Created 7 years, 8 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/common/gpu/media/vaapi_h264_decoder.cc ('k') | content/common/np_channel_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/texture_image_transport_surface.cc
diff --git a/content/common/gpu/texture_image_transport_surface.cc b/content/common/gpu/texture_image_transport_surface.cc
index c78b083e13524017a106f2affccc89f54f03c279..4a56bbf998eee9fe5340ec321fea00b0d2c20bb5 100644
--- a/content/common/gpu/texture_image_transport_surface.cc
+++ b/content/common/gpu/texture_image_transport_surface.cc
@@ -54,7 +54,7 @@ bool TextureImageTransportSurface::Initialize() {
GpuChannelManager* manager = helper_->manager();
surface_ = manager->GetDefaultOffscreenSurface();
- if (!surface_.get())
+ if (!surface_)
return false;
if (!helper_->Initialize())
@@ -71,7 +71,7 @@ bool TextureImageTransportSurface::Initialize() {
}
void TextureImageTransportSurface::Destroy() {
- if (surface_.get())
+ if (surface_)
surface_ = NULL;
helper_->Destroy();
@@ -329,7 +329,7 @@ void TextureImageTransportSurface::BufferPresentedImpl(
// of the service ids.
DCHECK(context_.get() && surface_.get());
uint32 service_id = backbuffer_->ReleaseServiceId();
- if (context_->MakeCurrent(surface_.get()))
+ if (context_->MakeCurrent(surface_))
glDeleteTextures(1, &service_id);
return;
« no previous file with comments | « content/common/gpu/media/vaapi_h264_decoder.cc ('k') | content/common/np_channel_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698