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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/image_transport_surface.cc
diff --git a/content/common/gpu/image_transport_surface.cc b/content/common/gpu/image_transport_surface.cc
index e0f1e2f0e68c665b7ef6e508e348fd3cdb66bd0b..d9ea02e64b879d05ef51f928be851fd28bddad01 100644
--- a/content/common/gpu/image_transport_surface.cc
+++ b/content/common/gpu/image_transport_surface.cc
@@ -353,11 +353,9 @@ gfx::Size PassThroughImageTransportSurface::GetSize() {
PassThroughImageTransportSurface::~PassThroughImageTransportSurface() {}
void PassThroughImageTransportSurface::SendVSyncUpdateIfAvailable() {
- base::TimeTicks timebase;
- base::TimeDelta interval;
- if (GetVSyncParameters(&timebase, &interval)) {
- helper_->SendUpdateVSyncParameters(timebase, interval);
- }
+ GetVSyncParameters(
+ base::Bind(&ImageTransportHelper::SendUpdateVSyncParameters,
+ helper_->AsWeakPtr()));
}
} // namespace content
« .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