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

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

Issue 1182063002: Add support for more advanced color correction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@qcms-fixed-point-gamma
Patch Set: Rebase after quirks changes Created 4 years, 8 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 bool DestroyDumbBuffer(uint32_t handle) override; 106 bool DestroyDumbBuffer(uint32_t handle) override;
107 bool MapDumbBuffer(uint32_t handle, size_t size, void** pixels) override; 107 bool MapDumbBuffer(uint32_t handle, size_t size, void** pixels) override;
108 bool UnmapDumbBuffer(void* pixels, size_t size) override; 108 bool UnmapDumbBuffer(void* pixels, size_t size) override;
109 bool CloseBufferHandle(uint32_t handle) override; 109 bool CloseBufferHandle(uint32_t handle) override;
110 bool CommitProperties(drmModeAtomicReq* properties, 110 bool CommitProperties(drmModeAtomicReq* properties,
111 uint32_t flags, 111 uint32_t flags,
112 uint32_t crtc_count, 112 uint32_t crtc_count,
113 const PageFlipCallback& callback) override; 113 const PageFlipCallback& callback) override;
114 bool SetGammaRamp(uint32_t crtc_id, 114 bool SetGammaRamp(uint32_t crtc_id,
115 const std::vector<GammaRampRGBEntry>& lut) override; 115 const std::vector<GammaRampRGBEntry>& lut) override;
116 bool SetColorCorrection(uint32_t crtc_id,
117 const std::vector<GammaRampRGBEntry>& degamma_lut,
118 const std::vector<GammaRampRGBEntry>& gamma_lut,
119 const std::vector<float>& correction_matrix) override;
116 bool SetCapability(uint64_t capability, uint64_t value) override; 120 bool SetCapability(uint64_t capability, uint64_t value) override;
117 121
118 private: 122 private:
119 ~MockDrmDevice() override; 123 ~MockDrmDevice() override;
120 124
121 int get_crtc_call_count_; 125 int get_crtc_call_count_;
122 int set_crtc_call_count_; 126 int set_crtc_call_count_;
123 int restore_crtc_call_count_; 127 int restore_crtc_call_count_;
124 int add_framebuffer_call_count_; 128 int add_framebuffer_call_count_;
125 int remove_framebuffer_call_count_; 129 int remove_framebuffer_call_count_;
(...skipping 16 matching lines...) Expand all
142 std::map<uint32_t, uint32_t> crtc_cursor_map_; 146 std::map<uint32_t, uint32_t> crtc_cursor_map_;
143 147
144 std::queue<PageFlipCallback> callbacks_; 148 std::queue<PageFlipCallback> callbacks_;
145 149
146 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice); 150 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice);
147 }; 151 };
148 152
149 } // namespace ui 153 } // namespace ui
150 154
151 #endif // UI_OZONE_PLATFORM_DRM_GPU_MOCK_DRM_DEVICE_H_ 155 #endif // UI_OZONE_PLATFORM_DRM_GPU_MOCK_DRM_DEVICE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread_message_proxy.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