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

Side by Side Diff: ui/ozone/platform/drm/gpu/gbm_buffer.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
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_PLATFORM_DRM_GPU_GBM_BUFFER_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/scoped_file.h" 10 #include "base/files/scoped_file.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 uint32_t format_; 75 uint32_t format_;
76 uint32_t flags_; 76 uint32_t flags_;
77 std::vector<base::ScopedFD> fds_; 77 std::vector<base::ScopedFD> fds_;
78 gfx::Size size_; 78 gfx::Size size_;
79 79
80 std::vector<gfx::NativePixmapPlane> planes_; 80 std::vector<gfx::NativePixmapPlane> planes_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(GbmBuffer); 82 DISALLOW_COPY_AND_ASSIGN(GbmBuffer);
83 }; 83 };
84 84
85 class GbmPixmap : public NativePixmap { 85 class GbmPixmap : public gfx::NativePixmap {
86 public: 86 public:
87 GbmPixmap(GbmSurfaceFactory* surface_manager, 87 GbmPixmap(GbmSurfaceFactory* surface_manager,
88 const scoped_refptr<GbmBuffer>& buffer); 88 const scoped_refptr<GbmBuffer>& buffer);
89 89
90 void SetProcessingCallback( 90 void SetProcessingCallback(
91 const ProcessingCallback& processing_callback) override; 91 const ProcessingCallback& processing_callback) override;
92 92
93 // NativePixmap: 93 // NativePixmap:
94 void* GetEGLClientBuffer() const override; 94 void* GetEGLClientBuffer() const override;
95 bool AreDmaBufFdsValid() const override; 95 bool AreDmaBufFdsValid() const override;
(...skipping 25 matching lines...) Expand all
121 // this Pixmap. This holds the processed buffer. 121 // this Pixmap. This holds the processed buffer.
122 scoped_refptr<GbmPixmap> processed_pixmap_; 122 scoped_refptr<GbmPixmap> processed_pixmap_;
123 ProcessingCallback processing_callback_; 123 ProcessingCallback processing_callback_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(GbmPixmap); 125 DISALLOW_COPY_AND_ASSIGN(GbmPixmap);
126 }; 126 };
127 127
128 } // namespace ui 128 } // namespace ui
129 129
130 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_ 130 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc ('k') | ui/ozone/platform/drm/gpu/gbm_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698