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

Side by Side Diff: ui/ozone/platform/dri/gbm_buffer.h

Issue 365193003: Change NativeBufferOzone to be an object and move the overlay calls to the surface object. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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/ozone/platform/dri/gbm.gypi ('k') | ui/ozone/platform/dri/gbm_buffer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_OZONE_PLATFORM_DRI_GBM_BUFFER_H_
6 #define UI_OZONE_PLATFORM_DRI_GBM_BUFFER_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ui/gfx/geometry/size.h"
11 #include "ui/ozone/public/native_pixmap.h"
12 #include "ui/ozone/public/surface_factory_ozone.h"
13
14 struct gbm_bo;
15 struct gbm_device;
16
17 namespace ui {
18
19 class DriWrapper;
20
21 class GbmBuffer : public NativePixmap {
22 public:
23 GbmBuffer(gbm_device* device, DriWrapper* dri, const gfx::Size& size);
24
25 bool InitializeBuffer(SurfaceFactoryOzone::BufferFormat format, bool scanout);
26
27 // NativePixmap:
28 virtual void* GetEGLClientBuffer() OVERRIDE;
29 virtual int GetDmaBufFd() OVERRIDE;
30
31 protected:
32 virtual ~GbmBuffer();
33
34 private:
35 gbm_device* gbm_device_;
36 gbm_bo* bo_;
37
38 uint32_t handle_;
39 uint32_t framebuffer_;
40
41 DriWrapper* dri_;
42
43 gfx::Size size_;
44 };
45
46 } // namespace ui
47
48 #endif // UI_OZONE_PLATFORM_DRI_GBM_BUFFER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/gbm.gypi ('k') | ui/ozone/platform/dri/gbm_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698