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

Side by Side Diff: ui/ozone/platform/drm/gpu/gbm_buffer.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: addressed nits 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_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 "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/gfx/geometry/size.h" 10 #include "ui/gfx/geometry/size.h"
11 #include "ui/ozone/platform/drm/gpu/gbm_buffer_base.h" 11 #include "ui/ozone/platform/drm/gpu/gbm_buffer_base.h"
12 #include "ui/ozone/platform/drm/gpu/screen_manager.h" 12 #include "ui/ozone/platform/drm/gpu/screen_manager.h"
13 #include "ui/ozone/public/native_pixmap.h" 13 #include "ui/ozone/public/native_pixmap.h"
14 #include "ui/ozone/public/surface_factory_ozone.h" 14 #include "ui/ozone/public/native_pixmap_types.h"
15 15
16 struct gbm_bo; 16 struct gbm_bo;
17 17
18 namespace ui { 18 namespace ui {
19 19
20 class GbmDevice; 20 class GbmDevice;
21 21
22 class GbmBuffer : public GbmBufferBase { 22 class GbmBuffer : public GbmBufferBase {
23 public: 23 public:
24 static scoped_refptr<GbmBuffer> CreateBuffer( 24 static scoped_refptr<GbmBuffer> CreateBuffer(
25 const scoped_refptr<GbmDevice>& gbm, 25 const scoped_refptr<GbmDevice>& gbm,
26 SurfaceFactoryOzone::BufferFormat format, 26 NativePixmapFormat format,
27 const gfx::Size& size, 27 const gfx::Size& size,
28 SurfaceFactoryOzone::BufferUsage usage); 28 NativePixmapUsage usage);
29 29
30 private: 30 private:
31 GbmBuffer(const scoped_refptr<GbmDevice>& gbm, gbm_bo* bo, bool scanout); 31 GbmBuffer(const scoped_refptr<GbmDevice>& gbm, gbm_bo* bo, bool scanout);
32 ~GbmBuffer() override; 32 ~GbmBuffer() override;
33 33
34 DISALLOW_COPY_AND_ASSIGN(GbmBuffer); 34 DISALLOW_COPY_AND_ASSIGN(GbmBuffer);
35 }; 35 };
36 36
37 class GbmPixmap : public NativePixmap { 37 class GbmPixmap : public NativePixmap {
38 public: 38 public:
(...skipping 27 matching lines...) Expand all
66 ScreenManager* screen_manager_; // Not owned. 66 ScreenManager* screen_manager_; // Not owned.
67 67
68 ScalingCallback scaling_callback_; 68 ScalingCallback scaling_callback_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(GbmPixmap); 70 DISALLOW_COPY_AND_ASSIGN(GbmPixmap);
71 }; 71 };
72 72
73 } // namespace ui 73 } // namespace ui
74 74
75 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_ 75 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698