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

Side by Side Diff: ui/gfx/native_pixmap.h

Issue 2768343002: Change namespace from ui to gfx for NativePixmap related code (Closed)
Patch Set: Addressed sadrul's remark Created 3 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 unified diff | Download patch
« no previous file with comments | « ui/gfx/client_native_pixmap_factory.cc ('k') | ui/gl/gl_image_native_pixmap.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_NATIVE_PIXMAP_H_ 5 #ifndef UI_GFX_NATIVE_PIXMAP_H_
6 #define UI_GFX_NATIVE_PIXMAP_H_ 6 #define UI_GFX_NATIVE_PIXMAP_H_
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "ui/gfx/buffer_types.h" 11 #include "ui/gfx/buffer_types.h"
12 #include "ui/gfx/geometry/size.h" 12 #include "ui/gfx/geometry/size.h"
13 #include "ui/gfx/native_pixmap_handle.h" 13 #include "ui/gfx/native_pixmap_handle.h"
14 #include "ui/gfx/native_widget_types.h" 14 #include "ui/gfx/native_widget_types.h"
15 #include "ui/gfx/overlay_transform.h" 15 #include "ui/gfx/overlay_transform.h"
16 16
17 namespace gfx { 17 namespace gfx {
18 class Rect; 18 class Rect;
19 class RectF; 19 class RectF;
20 }
21
22 namespace ui {
23 20
24 // This represents a buffer that can be directly imported via GL for 21 // This represents a buffer that can be directly imported via GL for
25 // rendering, or exported via dma-buf fds. 22 // rendering, or exported via dma-buf fds.
26 class NativePixmap : public base::RefCountedThreadSafe<NativePixmap> { 23 class NativePixmap : public base::RefCountedThreadSafe<NativePixmap> {
27 public: 24 public:
28 NativePixmap() {} 25 NativePixmap() {}
29 26
30 virtual void* /* EGLClientBuffer */ GetEGLClientBuffer() const = 0; 27 virtual void* /* EGLClientBuffer */ GetEGLClientBuffer() const = 0;
31 virtual bool AreDmaBufFdsValid() const = 0; 28 virtual bool AreDmaBufFdsValid() const = 0;
32 virtual size_t GetDmaBufFdCount() const = 0; 29 virtual size_t GetDmaBufFdCount() const = 0;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 67
71 protected: 68 protected:
72 virtual ~NativePixmap() {} 69 virtual ~NativePixmap() {}
73 70
74 private: 71 private:
75 friend class base::RefCountedThreadSafe<NativePixmap>; 72 friend class base::RefCountedThreadSafe<NativePixmap>;
76 73
77 DISALLOW_COPY_AND_ASSIGN(NativePixmap); 74 DISALLOW_COPY_AND_ASSIGN(NativePixmap);
78 }; 75 };
79 76
80 } // namespace ui 77 } // namespace gfx
81 78
82 #endif // UI_GFX_NATIVE_PIXMAP_H_ 79 #endif // UI_GFX_NATIVE_PIXMAP_H_
OLDNEW
« no previous file with comments | « ui/gfx/client_native_pixmap_factory.cc ('k') | ui/gl/gl_image_native_pixmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698