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

Side by Side Diff: content/common/gpu/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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/gpu/image_transport_surface.h" 5 #include "content/common/gpu/image_transport_surface.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 context->SetSwapInterval(0); 164 context->SetSwapInterval(0);
165 else 165 else
166 context->SetSwapInterval(1); 166 context->SetSwapInterval(1);
167 } 167 }
168 168
169 void ImageTransportHelper::Suspend() { 169 void ImageTransportHelper::Suspend() {
170 manager_->Send(new GpuHostMsg_AcceleratedSurfaceSuspend(stub_->surface_id())); 170 manager_->Send(new GpuHostMsg_AcceleratedSurfaceSuspend(stub_->surface_id()));
171 } 171 }
172 172
173 gpu::GpuScheduler* ImageTransportHelper::Scheduler() { 173 gpu::GpuScheduler* ImageTransportHelper::Scheduler() {
174 if (!stub_.get()) 174 if (!stub_)
175 return NULL; 175 return NULL;
176 return stub_->scheduler(); 176 return stub_->scheduler();
177 } 177 }
178 178
179 gpu::gles2::GLES2Decoder* ImageTransportHelper::Decoder() { 179 gpu::gles2::GLES2Decoder* ImageTransportHelper::Decoder() {
180 if (!stub_.get()) 180 if (!stub_)
181 return NULL; 181 return NULL;
182 return stub_->decoder(); 182 return stub_->decoder();
183 } 183 }
184 184
185 void ImageTransportHelper::OnBufferPresented( 185 void ImageTransportHelper::OnBufferPresented(
186 const AcceleratedSurfaceMsg_BufferPresented_Params& params) { 186 const AcceleratedSurfaceMsg_BufferPresented_Params& params) {
187 surface_->OnBufferPresented(params); 187 surface_->OnBufferPresented(params);
188 } 188 }
189 189
190 void ImageTransportHelper::OnResizeViewACK() { 190 void ImageTransportHelper::OnResizeViewACK() {
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 void PassThroughImageTransportSurface::SendVSyncUpdateIfAvailable() { 345 void PassThroughImageTransportSurface::SendVSyncUpdateIfAvailable() {
346 gfx::VSyncProvider* vsync_provider = GetVSyncProvider(); 346 gfx::VSyncProvider* vsync_provider = GetVSyncProvider();
347 if (vsync_provider) { 347 if (vsync_provider) {
348 vsync_provider->GetVSyncParameters( 348 vsync_provider->GetVSyncParameters(
349 base::Bind(&ImageTransportHelper::SendUpdateVSyncParameters, 349 base::Bind(&ImageTransportHelper::SendUpdateVSyncParameters,
350 helper_->AsWeakPtr())); 350 helper_->AsWeakPtr()));
351 } 351 }
352 } 352 }
353 353
354 } // namespace content 354 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | content/common/gpu/image_transport_surface_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698