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

Side by Side Diff: content/common/gpu/image_transport_surface.cc

Issue 11293194: ui: Prefer +/- operators to apply offsets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: floats Created 8 years, 1 month 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 #if defined(ENABLE_GPU) 5 #if defined(ENABLE_GPU)
6 6
7 #include "content/common/gpu/image_transport_surface.h" 7 #include "content/common/gpu/image_transport_surface.h"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 } 346 }
347 } 347 }
348 348
349 gfx::Size PassThroughImageTransportSurface::GetSize() { 349 gfx::Size PassThroughImageTransportSurface::GetSize() {
350 return GLSurfaceAdapter::GetSize(); 350 return GLSurfaceAdapter::GetSize();
351 } 351 }
352 352
353 PassThroughImageTransportSurface::~PassThroughImageTransportSurface() {} 353 PassThroughImageTransportSurface::~PassThroughImageTransportSurface() {}
354 354
355 void PassThroughImageTransportSurface::SendVSyncUpdateIfAvailable() { 355 void PassThroughImageTransportSurface::SendVSyncUpdateIfAvailable() {
356 base::TimeTicks timebase; 356 GetVSyncParameters(
357 base::TimeDelta interval; 357 base::Bind(&ImageTransportHelper::SendUpdateVSyncParameters,
358 if (GetVSyncParameters(&timebase, &interval)) { 358 helper_->AsWeakPtr()));
359 helper_->SendUpdateVSyncParameters(timebase, interval);
360 }
361 } 359 }
362 360
363 } // namespace content 361 } // namespace content
364 362
365 #endif // defined(ENABLE_GPU) 363 #endif // defined(ENABLE_GPU)
OLDNEW
« .gitmodules ('K') | « content/common/gpu/image_transport_surface.h ('k') | ui/gfx/blit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698