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

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

Issue 471433007: [Ozone-Dri] Adding initial content protection support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cast Created 6 years, 3 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_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 <vector> 10 #include <vector>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 std::vector<uint32_t> connectors, 44 std::vector<uint32_t> connectors,
45 drmModeModeInfo* mode); 45 drmModeModeInfo* mode);
46 46
47 // Used to set a specific configuration to the CRTC. Normally this function 47 // Used to set a specific configuration to the CRTC. Normally this function
48 // would be called with a CRTC saved state (from |GetCrtc|) to restore it to 48 // would be called with a CRTC saved state (from |GetCrtc|) to restore it to
49 // its original configuration. 49 // its original configuration.
50 virtual bool SetCrtc(drmModeCrtc* crtc, std::vector<uint32_t> connectors); 50 virtual bool SetCrtc(drmModeCrtc* crtc, std::vector<uint32_t> connectors);
51 51
52 virtual bool DisableCrtc(uint32_t crtc_id); 52 virtual bool DisableCrtc(uint32_t crtc_id);
53 53
54 // Returns the connector properties for |connector_id|.
55 virtual ScopedDrmConnectorPtr GetConnector(uint32_t connector_id);
56
54 // Register a buffer with the CRTC. On successful registration, the CRTC will 57 // Register a buffer with the CRTC. On successful registration, the CRTC will
55 // assign a framebuffer ID to |framebuffer|. 58 // assign a framebuffer ID to |framebuffer|.
56 virtual bool AddFramebuffer(uint32_t width, 59 virtual bool AddFramebuffer(uint32_t width,
57 uint32_t height, 60 uint32_t height,
58 uint8_t depth, 61 uint8_t depth,
59 uint8_t bpp, 62 uint8_t bpp,
60 uint32_t stride, 63 uint32_t stride,
61 uint32_t handle, 64 uint32_t handle,
62 uint32_t* framebuffer); 65 uint32_t* framebuffer);
63 66
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // be performed using this FD. 134 // be performed using this FD.
132 int fd_; 135 int fd_;
133 136
134 private: 137 private:
135 DISALLOW_COPY_AND_ASSIGN(DriWrapper); 138 DISALLOW_COPY_AND_ASSIGN(DriWrapper);
136 }; 139 };
137 140
138 } // namespace ui 141 } // namespace ui
139 142
140 #endif // UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_ 143 #endif // UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/chromeos/native_display_delegate_dri.cc ('k') | ui/ozone/platform/dri/dri_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698