Index: chromecast/ui/gfx/gfx_plane_directfb.h |
diff --git a/chromecast/ui/gfx/gfx_plane_directfb.h b/chromecast/ui/gfx/gfx_plane_directfb.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e17caddaa5a0417ca4eb9ef3b8217574d7350103 |
--- /dev/null |
+++ b/chromecast/ui/gfx/gfx_plane_directfb.h |
@@ -0,0 +1,41 @@ |
+// Copyright (c) 2014 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 CHROMECAST_UI_GFX_GFX_PLANE_DIRECTFB_H_ |
+#define CHROMECAST_UI_GFX_GFX_PLANE_DIRECTFB_H_ |
+ |
+#include <directfb.h> |
+#include <string> |
+ |
+#include "base/basictypes.h" |
+#include "base/compiler_specific.h" |
+#include "chromecast/ui/gfx/gfx_plane.h" |
+ |
+namespace gfx { |
+ |
+class Size; |
+ |
+namespace chromecast { |
+ |
+class Surface; |
+ |
+class GfxPlaneDirectFb : public GfxPlane { |
+ public: |
+ GfxPlaneDirectFb(const base::CommandLine& command_line); |
+ virtual ~GfxPlaneDirectFb(); |
+ |
+ virtual Surface* CreateSurface(const Size& size) OVERRIDE; |
+ |
+ IDirectFB* dfb() const { return dfb_; } |
+ |
+ private: |
+ IDirectFB* dfb_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(GfxPlaneDirectFb); |
+}; |
+ |
+} // namespace chromecast |
+} // namespace gfx |
+ |
+#endif // CHROMECAST_UI_GFX_GFX_PLANE_DIRECTFB_H_ |