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

Side by Side Diff: chromecast/ui/gfx/surface_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, 8 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 unified diff | Download patch
OLDNEW
(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_SURFACE_DIRECTFB_H_
6 #define CHROMECAST_UI_GFX_SURFACE_DIRECTFB_H_
7
8 #include <directfb.h>
9
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "chromecast/ui/gfx/surface.h"
13
14 namespace gfx {
15 namespace chromecast {
16
17 class GfxPlaneDirectFb;
18
19 class SurfaceDirectFb : public Surface {
20 public:
21 SurfaceDirectFb(GfxPlaneDirectFb* plane, const Size& size, bool primary);
22 virtual ~SurfaceDirectFb();
23
24 virtual void Blit(Surface* src_surface,
25 const Rect& src_rect,
26 const Point& dst_point) OVERRIDE;
27
28 virtual void Composite(Surface* src_surface,
29 const Rect& src_rect,
30 const Point& dst_point) OVERRIDE;
31
32 virtual void CopyBitmap(char* src_bitmap,
33 const Rect& src_rect,
34 const Rect& damage_rect,
35 const Point& dst_point) OVERRIDE;
36
37 virtual void BatchCopyBitmap(
38 char* src_bitmap,
39 const Rect& src_rect,
40 const std::vector<Rect>& damage_rect_vector,
41 const std::vector<Point>& dst_point_vector) OVERRIDE;
42
43 virtual void Fill(const Rect& rect, int argb) OVERRIDE;
44
45 virtual void Display(const Rect& rect,
46 const Point& frame_buffer_point) OVERRIDE;
47
48 private:
49 const bool primary_;
50 IDirectFBSurface* internal_surface_;
51
52 DISALLOW_COPY_AND_ASSIGN(SurfaceDirectFb);
53 };
54
55 } // namespace chromecast
56 } // namespace gfx
57
58 #endif // CHROMECAST_UI_GFX_SURFACE_DIRECTFB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698