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

Side by Side Diff: content/browser/renderer_host/image_transport_factory.cc

Issue 15836005: cc: Emulate BeginFrame in OutputSurfaces that don't support it natively (Closed) Base URL: http://git.chromium.org/chromium/src.git@nofrc
Patch Set: Created 7 years, 6 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
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/browser/renderer_host/image_transport_factory.h" 5 #include "content/browser/renderer_host/image_transport_factory.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 return false; 339 return false;
340 340
341 output_surface_proxy_->AddSurface(this, surface_id_); 341 output_surface_proxy_->AddSurface(this, surface_id_);
342 return true; 342 return true;
343 } 343 }
344 344
345 void OnUpdateVSyncParameters( 345 void OnUpdateVSyncParameters(
346 base::TimeTicks timebase, base::TimeDelta interval) { 346 base::TimeTicks timebase, base::TimeDelta interval) {
347 DCHECK(CalledOnValidThread()); 347 DCHECK(CalledOnValidThread());
348 DCHECK(client_); 348 DCHECK(client_);
349 client_->OnVSyncParametersChanged(timebase, interval); 349 OnVSyncParametersChanged(timebase, interval);
350 compositor_message_loop_->PostTask( 350 compositor_message_loop_->PostTask(
351 FROM_HERE, 351 FROM_HERE,
352 base::Bind(&ui::Compositor::OnUpdateVSyncParameters, 352 base::Bind(&ui::Compositor::OnUpdateVSyncParameters,
353 compositor_, timebase, interval)); 353 compositor_, timebase, interval));
354 } 354 }
355 355
356 private: 356 private:
357 int surface_id_; 357 int surface_id_;
358 scoped_refptr<BrowserCompositorOutputSurfaceProxy> output_surface_proxy_; 358 scoped_refptr<BrowserCompositorOutputSurfaceProxy> output_surface_proxy_;
359 359
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 delete g_factory; 761 delete g_factory;
762 g_factory = NULL; 762 g_factory = NULL;
763 } 763 }
764 764
765 // static 765 // static
766 ImageTransportFactory* ImageTransportFactory::GetInstance() { 766 ImageTransportFactory* ImageTransportFactory::GetInstance() {
767 return g_factory; 767 return g_factory;
768 } 768 }
769 769
770 } // namespace content 770 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698