| Index: cc/output/software_overlay_presenter_hal.cc
|
| diff --git a/cc/output/software_overlay_presenter_hal.cc b/cc/output/software_overlay_presenter_hal.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c71973042f893b4e5e3cac41d5357b24349ce264
|
| --- /dev/null
|
| +++ b/cc/output/software_overlay_presenter_hal.cc
|
| @@ -0,0 +1,45 @@
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "cc/output/software_overlay_presenter_hal.h"
|
| +
|
| +#include <stdlib.h>
|
| +
|
| +namespace cc {
|
| +
|
| +// static
|
| +SoftwareOverlayPresenterHAL* SoftwareOverlayPresenterHAL::impl_ = NULL;
|
| +
|
| +SoftwareOverlayPresenterHAL::OverlaySurface::OverlaySurface() {}
|
| +
|
| +SoftwareOverlayPresenterHAL::OverlaySurface::~OverlaySurface() {}
|
| +
|
| +class SoftwareOverlayPresenterHALStub : public SoftwareOverlayPresenterHAL {
|
| + public:
|
| + SoftwareOverlayPresenterHALStub() {}
|
| + virtual ~SoftwareOverlayPresenterHALStub() {}
|
| +
|
| + virtual void CheckOverlaySupport(std::vector<OverlaySurface>* surfaces)
|
| + OVERRIDE {}
|
| +};
|
| +
|
| +SoftwareOverlayPresenterHAL::SoftwareOverlayPresenterHAL() {}
|
| +
|
| +SoftwareOverlayPresenterHAL::~SoftwareOverlayPresenterHAL() {}
|
| +
|
| +SoftwareOverlayPresenterHAL* SoftwareOverlayPresenterHAL::GetInstance() {
|
| + return impl_;
|
| +}
|
| +
|
| +void SoftwareOverlayPresenterHAL::SetInstance(
|
| + SoftwareOverlayPresenterHAL* impl) {
|
| + impl_ = impl;
|
| +}
|
| +
|
| +// static
|
| +SoftwareOverlayPresenterHAL* SoftwareOverlayPresenterHAL::CreateTestHelper() {
|
| + return new SoftwareOverlayPresenterHALStub;
|
| +}
|
| +
|
| +} // namespace cc
|
|
|