| Index: cc/output/software_overlay_presenter_hal.h
|
| diff --git a/cc/output/software_overlay_presenter_hal.h b/cc/output/software_overlay_presenter_hal.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a535fb97c10d3ae37fafec4b6d24f2582ab467db
|
| --- /dev/null
|
| +++ b/cc/output/software_overlay_presenter_hal.h
|
| @@ -0,0 +1,41 @@
|
| +// Copyright 2012 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.
|
| +
|
| +#ifndef CC_OUTPUT_SOFTWARE_OVERLAY_PRESENTER_HAL_H_
|
| +#define CC_OUTPUT_SOFTWARE_OVERLAY_PRESENTER_HAL_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "cc/base/cc_export.h"
|
| +#include "cc/quads/render_pass.h"
|
| +
|
| +namespace cc {
|
| +
|
| +class CC_EXPORT SoftwareOverlayPresenterHAL {
|
| + public:
|
| + struct OverlaySurface {
|
| + OverlaySurface();
|
| + ~OverlaySurface();
|
| + gfx::Rect rect;
|
| + };
|
| +
|
| + SoftwareOverlayPresenterHAL();
|
| + virtual ~SoftwareOverlayPresenterHAL();
|
| +
|
| + // Returns the instance
|
| + static SoftwareOverlayPresenterHAL* GetInstance();
|
| +
|
| + // Sets the implementation delegate. Ownership is retained by the caller.
|
| + static void SetInstance(SoftwareOverlayPresenterHAL* impl);
|
| +
|
| + static SoftwareOverlayPresenterHAL* CreateTestHelper();
|
| +
|
| + virtual void CheckOverlaySupport(std::vector<OverlaySurface>* surfaces) = 0;
|
| +
|
| + private:
|
| + static SoftwareOverlayPresenterHAL* impl_; // not owned
|
| +};
|
| +
|
| +} // namespace cc
|
| +
|
| +#endif // CC_OUTPUT_SOFTWARE_OVERLAY_PRESENTER_HAL_H_
|
|
|