OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 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 CHROMECAST_UI_GFX_GFX_PLANE_DIRECTFB_H_ |
| 6 #define CHROMECAST_UI_GFX_GFX_PLANE_DIRECTFB_H_ |
| 7 |
| 8 #include <directfb.h> |
| 9 #include <string> |
| 10 |
| 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" |
| 13 #include "chromecast/ui/gfx/gfx_plane.h" |
| 14 |
| 15 namespace gfx { |
| 16 |
| 17 class Size; |
| 18 |
| 19 namespace chromecast { |
| 20 |
| 21 class Surface; |
| 22 |
| 23 class GfxPlaneDirectFb : public GfxPlane { |
| 24 public: |
| 25 GfxPlaneDirectFb(const base::CommandLine& command_line); |
| 26 virtual ~GfxPlaneDirectFb(); |
| 27 |
| 28 virtual Surface* CreateSurface(const Size& size) OVERRIDE; |
| 29 |
| 30 IDirectFB* dfb() const { return dfb_; } |
| 31 |
| 32 private: |
| 33 IDirectFB* dfb_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(GfxPlaneDirectFb); |
| 36 }; |
| 37 |
| 38 } // namespace chromecast |
| 39 } // namespace gfx |
| 40 |
| 41 #endif // CHROMECAST_UI_GFX_GFX_PLANE_DIRECTFB_H_ |
OLD | NEW |