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

Side by Side Diff: ui/ozone/platform/drm/gpu/mock_drm_device.h

Issue 2623963002: ozone: Allocate scanout buffers according to KMS modifiers. (Closed)
Patch Set: Remove unused modifier_. Created 3 years, 11 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_MOCK_DRM_DEVICE_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_MOCK_DRM_DEVICE_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_MOCK_DRM_DEVICE_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_MOCK_DRM_DEVICE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 drmModeModeInfo* mode) override; 67 drmModeModeInfo* mode) override;
68 bool SetCrtc(drmModeCrtc* crtc, std::vector<uint32_t> connectors) override; 68 bool SetCrtc(drmModeCrtc* crtc, std::vector<uint32_t> connectors) override;
69 bool DisableCrtc(uint32_t crtc_id) override; 69 bool DisableCrtc(uint32_t crtc_id) override;
70 ScopedDrmConnectorPtr GetConnector(uint32_t connector_id) override; 70 ScopedDrmConnectorPtr GetConnector(uint32_t connector_id) override;
71 bool AddFramebuffer2(uint32_t width, 71 bool AddFramebuffer2(uint32_t width,
72 uint32_t height, 72 uint32_t height,
73 uint32_t format, 73 uint32_t format,
74 uint32_t handles[4], 74 uint32_t handles[4],
75 uint32_t strides[4], 75 uint32_t strides[4],
76 uint32_t offsets[4], 76 uint32_t offsets[4],
77 uint64_t modifiers[4],
77 uint32_t* framebuffer, 78 uint32_t* framebuffer,
78 uint32_t flags) override; 79 uint32_t flags) override;
79 bool RemoveFramebuffer(uint32_t framebuffer) override; 80 bool RemoveFramebuffer(uint32_t framebuffer) override;
80 ScopedDrmFramebufferPtr GetFramebuffer(uint32_t framebuffer) override; 81 ScopedDrmFramebufferPtr GetFramebuffer(uint32_t framebuffer) override;
81 bool PageFlip(uint32_t crtc_id, 82 bool PageFlip(uint32_t crtc_id,
82 uint32_t framebuffer, 83 uint32_t framebuffer,
83 const PageFlipCallback& callback) override; 84 const PageFlipCallback& callback) override;
84 bool PageFlipOverlay(uint32_t crtc_id, 85 bool PageFlipOverlay(uint32_t crtc_id,
85 uint32_t framebuffer, 86 uint32_t framebuffer,
86 const gfx::Rect& location, 87 const gfx::Rect& location,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 std::map<uint32_t, uint32_t> crtc_cursor_map_; 144 std::map<uint32_t, uint32_t> crtc_cursor_map_;
144 145
145 std::queue<PageFlipCallback> callbacks_; 146 std::queue<PageFlipCallback> callbacks_;
146 147
147 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice); 148 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice);
148 }; 149 };
149 150
150 } // namespace ui 151 } // namespace ui
151 152
152 #endif // UI_OZONE_PLATFORM_DRM_GPU_MOCK_DRM_DEVICE_H_ 153 #endif // UI_OZONE_PLATFORM_DRM_GPU_MOCK_DRM_DEVICE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/hardware_display_plane_manager.cc ('k') | ui/ozone/platform/drm/gpu/mock_drm_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698