| OLD | NEW |
| 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 DCHECK(CalledOnValidThread()); | 333 DCHECK(CalledOnValidThread()); |
| 334 return context3D_.get(); | 334 return context3D_.get(); |
| 335 } | 335 } |
| 336 | 336 |
| 337 virtual cc::SoftwareOutputDevice* SoftwareDevice() const OVERRIDE { | 337 virtual cc::SoftwareOutputDevice* SoftwareDevice() const OVERRIDE { |
| 338 DCHECK(CalledOnValidThread()); | 338 DCHECK(CalledOnValidThread()); |
| 339 return NULL; | 339 return NULL; |
| 340 } | 340 } |
| 341 | 341 |
| 342 virtual void SendFrameToParentCompositor( | 342 virtual void SendFrameToParentCompositor( |
| 343 const cc::CompositorFrame&) OVERRIDE { | 343 cc::CompositorFrame&) OVERRIDE { |
| 344 } | 344 } |
| 345 | 345 |
| 346 void OnUpdateVSyncParameters( | 346 void OnUpdateVSyncParameters( |
| 347 base::TimeTicks timebase, base::TimeDelta interval) { | 347 base::TimeTicks timebase, base::TimeDelta interval) { |
| 348 DCHECK(CalledOnValidThread()); | 348 DCHECK(CalledOnValidThread()); |
| 349 DCHECK(client_); | 349 DCHECK(client_); |
| 350 client_->OnVSyncParametersChanged(timebase, interval); | 350 client_->OnVSyncParametersChanged(timebase, interval); |
| 351 } | 351 } |
| 352 | 352 |
| 353 private: | 353 private: |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 delete g_factory; | 636 delete g_factory; |
| 637 g_factory = NULL; | 637 g_factory = NULL; |
| 638 } | 638 } |
| 639 | 639 |
| 640 // static | 640 // static |
| 641 ImageTransportFactory* ImageTransportFactory::GetInstance() { | 641 ImageTransportFactory* ImageTransportFactory::GetInstance() { |
| 642 return g_factory; | 642 return g_factory; |
| 643 } | 643 } |
| 644 | 644 |
| 645 } // namespace content | 645 } // namespace content |
| OLD | NEW |