OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/gfx/ozone/overlay_hal_ozone.h" |
| 6 |
| 7 #include <stdlib.h> |
| 8 |
| 9 namespace gfx { |
| 10 |
| 11 // static |
| 12 OverlayHALOzone* OverlayHALOzone::impl_ = NULL; |
| 13 |
| 14 OverlayHALOzone::SurfaceCandidate::SurfaceCandidate() |
| 15 : format(UNKNOWN), overlay_handled(false) {} |
| 16 |
| 17 OverlayHALOzone::SurfaceCandidate::~SurfaceCandidate() {} |
| 18 |
| 19 class OverlayHALOzoneStub : public OverlayHALOzone { |
| 20 public: |
| 21 OverlayHALOzoneStub() {} |
| 22 virtual ~OverlayHALOzoneStub() {} |
| 23 |
| 24 virtual void CheckOverlaySupport(std::vector<SurfaceCandidate>* surfaces) |
| 25 OVERRIDE {} |
| 26 }; |
| 27 |
| 28 OverlayHALOzone::OverlayHALOzone() {} |
| 29 |
| 30 OverlayHALOzone::~OverlayHALOzone() {} |
| 31 |
| 32 OverlayHALOzone* OverlayHALOzone::GetInstance() { return impl_; } |
| 33 |
| 34 void OverlayHALOzone::SetInstance(OverlayHALOzone* impl) { impl_ = impl; } |
| 35 |
| 36 // static |
| 37 OverlayHALOzone* OverlayHALOzone::CreateTestHelper() { |
| 38 return new OverlayHALOzoneStub; |
| 39 } |
| 40 |
| 41 } // namespace gfx |
OLD | NEW |