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