Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2012 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 #ifndef CC_OUTPUT_SOFTWARE_OVERLAY_PRESENTER_HAL_H_ | |
| 6 #define CC_OUTPUT_SOFTWARE_OVERLAY_PRESENTER_HAL_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "cc/base/cc_export.h" | |
| 10 #include "cc/quads/render_pass.h" | |
| 11 | |
| 12 namespace cc { | |
| 13 | |
| 14 class CC_EXPORT SoftwareOverlayPresenterHAL { | |
|
rjkroege
2014/01/10 19:14:04
needs some docs too.
This is the abstraction to t
| |
| 15 public: | |
| 16 struct OverlaySurface { | |
| 17 OverlaySurface(); | |
| 18 ~OverlaySurface(); | |
| 19 gfx::Rect rect; | |
| 20 }; | |
| 21 | |
| 22 SoftwareOverlayPresenterHAL(); | |
| 23 virtual ~SoftwareOverlayPresenterHAL(); | |
| 24 | |
| 25 // Returns the instance | |
| 26 static SoftwareOverlayPresenterHAL* GetInstance(); | |
| 27 | |
| 28 // Sets the implementation delegate. Ownership is retained by the caller. | |
| 29 static void SetInstance(SoftwareOverlayPresenterHAL* impl); | |
| 30 | |
| 31 static SoftwareOverlayPresenterHAL* CreateTestHelper(); | |
| 32 | |
| 33 virtual void CheckOverlaySupport(std::vector<OverlaySurface>* surfaces) = 0; | |
| 34 | |
| 35 private: | |
| 36 static SoftwareOverlayPresenterHAL* impl_; // not owned | |
| 37 }; | |
| 38 | |
| 39 } // namespace cc | |
| 40 | |
| 41 #endif // CC_OUTPUT_SOFTWARE_OVERLAY_PRESENTER_HAL_H_ | |
| OLD | NEW |