Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1853)

Unified Diff: chromecast/ui/gfx/gfx_plane_directfb.h

Issue 223143003: Initial checkin of chromecast content embedder (cast_shell) and related build scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add an additional function in gl_surface_cast.cc Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698