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

Side by Side Diff: ui/ozone/public/native_pixmap.h

Issue 1128113011: ozone: Introduce ClientPixmap and ClientPixmapFactory for non-GPU processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to crrev.com/1258713002 Created 5 years, 4 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
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_OZONE_PUBLIC_NATIVE_PIXMAP_H_ 5 #ifndef UI_OZONE_PUBLIC_NATIVE_PIXMAP_H_
6 #define UI_OZONE_PUBLIC_NATIVE_PIXMAP_H_ 6 #define UI_OZONE_PUBLIC_NATIVE_PIXMAP_H_
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
11 #include "ui/gfx/overlay_transform.h" 11 #include "ui/gfx/overlay_transform.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 class Rect; 14 class Rect;
15 class RectF; 15 class RectF;
16 class Size;
16 } 17 }
17 18
18 namespace ui { 19 namespace ui {
19 20
20 // 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
21 // rendering, or exported via dma-buf fds. 22 // rendering, or exported via dma-buf fds.
22 class NativePixmap : public base::RefCountedThreadSafe<NativePixmap> { 23 class NativePixmap : public base::RefCountedThreadSafe<NativePixmap> {
23 public: 24 public:
24 NativePixmap() {} 25 NativePixmap() {}
25 26
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 59
59 private: 60 private:
60 friend class base::RefCountedThreadSafe<NativePixmap>; 61 friend class base::RefCountedThreadSafe<NativePixmap>;
61 62
62 DISALLOW_COPY_AND_ASSIGN(NativePixmap); 63 DISALLOW_COPY_AND_ASSIGN(NativePixmap);
63 }; 64 };
64 65
65 } // namespace ui 66 } // namespace ui
66 67
67 #endif // UI_OZONE_PUBLIC_NATIVE_PIXMAP_H_ 68 #endif // UI_OZONE_PUBLIC_NATIVE_PIXMAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698