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

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

Issue 276753003: [Ozone-DRI] Move framebuffer initialization into the buffer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « ui/ozone/platform/dri/dri_surface_unittest.cc ('k') | ui/ozone/platform/dri/dri_wrapper.cc » ('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_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_
6 #define UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_ 6 #define UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/macros.h"
11 #include "ui/ozone/ozone_export.h" 11 #include "ui/ozone/ozone_export.h"
12 12
13 typedef struct _drmModeConnector drmModeConnector; 13 typedef struct _drmModeConnector drmModeConnector;
14 typedef struct _drmModeCrtc drmModeCrtc; 14 typedef struct _drmModeCrtc drmModeCrtc;
15 typedef struct _drmModeModeInfo drmModeModeInfo; 15 typedef struct _drmModeModeInfo drmModeModeInfo;
16 typedef struct _drmModeProperty drmModePropertyRes; 16 typedef struct _drmModeProperty drmModePropertyRes;
17 typedef struct _drmModePropertyBlob drmModePropertyBlobRes; 17 typedef struct _drmModePropertyBlob drmModePropertyBlobRes;
18 18
19 namespace ui { 19 namespace ui {
20 20
(...skipping 24 matching lines...) Expand all
45 45
46 // Used to set a specific configuration to the CRTC. Normally this function 46 // Used to set a specific configuration to the CRTC. Normally this function
47 // would be called with a CRTC saved state (from |GetCrtc|) to restore it to 47 // would be called with a CRTC saved state (from |GetCrtc|) to restore it to
48 // its original configuration. 48 // its original configuration.
49 virtual bool SetCrtc(drmModeCrtc* crtc, uint32_t* connectors); 49 virtual bool SetCrtc(drmModeCrtc* crtc, uint32_t* connectors);
50 50
51 virtual bool DisableCrtc(uint32_t crtc_id); 51 virtual bool DisableCrtc(uint32_t crtc_id);
52 52
53 // Register a buffer with the CRTC. On successful registration, the CRTC will 53 // Register a buffer with the CRTC. On successful registration, the CRTC will
54 // assign a framebuffer ID to |framebuffer|. 54 // assign a framebuffer ID to |framebuffer|.
55 virtual bool AddFramebuffer(const drmModeModeInfo& mode, 55 virtual bool AddFramebuffer(uint32_t width,
56 uint32_t height,
56 uint8_t depth, 57 uint8_t depth,
57 uint8_t bpp, 58 uint8_t bpp,
58 uint32_t stride, 59 uint32_t stride,
59 uint32_t handle, 60 uint32_t handle,
60 uint32_t* framebuffer); 61 uint32_t* framebuffer);
61 62
62 // Deregister the given |framebuffer|. 63 // Deregister the given |framebuffer|.
63 virtual bool RemoveFramebuffer(uint32_t framebuffer); 64 virtual bool RemoveFramebuffer(uint32_t framebuffer);
64 65
65 // Schedules a pageflip for CRTC |crtc_id|. This function will return 66 // Schedules a pageflip for CRTC |crtc_id|. This function will return
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // be performed using this FD. 115 // be performed using this FD.
115 int fd_; 116 int fd_;
116 117
117 private: 118 private:
118 DISALLOW_COPY_AND_ASSIGN(DriWrapper); 119 DISALLOW_COPY_AND_ASSIGN(DriWrapper);
119 }; 120 };
120 121
121 } // namespace ui 122 } // namespace ui
122 123
123 #endif // UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_ 124 #endif // UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri_surface_unittest.cc ('k') | ui/ozone/platform/dri/dri_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698