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

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

Issue 1945353004: Revert of ash: reset color management when new screens are hotplugged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 uint32_t* handle, 102 uint32_t* handle,
103 uint32_t* stride) override; 103 uint32_t* stride) override;
104 bool DestroyDumbBuffer(uint32_t handle) override; 104 bool DestroyDumbBuffer(uint32_t handle) override;
105 bool MapDumbBuffer(uint32_t handle, size_t size, void** pixels) override; 105 bool MapDumbBuffer(uint32_t handle, size_t size, void** pixels) override;
106 bool UnmapDumbBuffer(void* pixels, size_t size) override; 106 bool UnmapDumbBuffer(void* pixels, size_t size) override;
107 bool CloseBufferHandle(uint32_t handle) override; 107 bool CloseBufferHandle(uint32_t handle) override;
108 bool CommitProperties(drmModeAtomicReq* properties, 108 bool CommitProperties(drmModeAtomicReq* properties,
109 uint32_t flags, 109 uint32_t flags,
110 uint32_t crtc_count, 110 uint32_t crtc_count,
111 const PageFlipCallback& callback) override; 111 const PageFlipCallback& callback) override;
112 bool SetGammaRamp(uint32_t crtc_id,
113 const std::vector<GammaRampRGBEntry>& lut) override;
112 bool SetColorCorrection(uint32_t crtc_id, 114 bool SetColorCorrection(uint32_t crtc_id,
113 const std::vector<GammaRampRGBEntry>& degamma_lut, 115 const std::vector<GammaRampRGBEntry>& degamma_lut,
114 const std::vector<GammaRampRGBEntry>& gamma_lut, 116 const std::vector<GammaRampRGBEntry>& gamma_lut,
115 const std::vector<float>& correction_matrix) override; 117 const std::vector<float>& correction_matrix) override;
116 bool SetCapability(uint64_t capability, uint64_t value) override; 118 bool SetCapability(uint64_t capability, uint64_t value) override;
117 119
118 private: 120 private:
119 ~MockDrmDevice() override; 121 ~MockDrmDevice() override;
120 122
121 int get_crtc_call_count_; 123 int get_crtc_call_count_;
(...skipping 20 matching lines...) Expand all
142 std::map<uint32_t, uint32_t> crtc_cursor_map_; 144 std::map<uint32_t, uint32_t> crtc_cursor_map_;
143 145
144 std::queue<PageFlipCallback> callbacks_; 146 std::queue<PageFlipCallback> callbacks_;
145 147
146 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice); 148 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice);
147 }; 149 };
148 150
149 } // namespace ui 151 } // namespace ui
150 152
151 #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/drm_gpu_display_manager.h ('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