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

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

Issue 2613493002: Fix namespace for src/ui/display/. (Closed)
Patch Set: Rebase. 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 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 SetColorCorrection(uint32_t crtc_id, 112 bool SetColorCorrection(
113 const std::vector<GammaRampRGBEntry>& degamma_lut, 113 uint32_t crtc_id,
114 const std::vector<GammaRampRGBEntry>& gamma_lut, 114 const std::vector<display::GammaRampRGBEntry>& degamma_lut,
115 const std::vector<float>& correction_matrix) override; 115 const std::vector<display::GammaRampRGBEntry>& gamma_lut,
116 const std::vector<float>& correction_matrix) override;
116 bool SetCapability(uint64_t capability, uint64_t value) override; 117 bool SetCapability(uint64_t capability, uint64_t value) override;
117 118
118 private: 119 private:
119 ~MockDrmDevice() override; 120 ~MockDrmDevice() override;
120 121
121 int get_crtc_call_count_; 122 int get_crtc_call_count_;
122 int set_crtc_call_count_; 123 int set_crtc_call_count_;
123 int restore_crtc_call_count_; 124 int restore_crtc_call_count_;
124 int add_framebuffer_call_count_; 125 int add_framebuffer_call_count_;
125 int remove_framebuffer_call_count_; 126 int remove_framebuffer_call_count_;
(...skipping 16 matching lines...) Expand all
142 std::map<uint32_t, uint32_t> crtc_cursor_map_; 143 std::map<uint32_t, uint32_t> crtc_cursor_map_;
143 144
144 std::queue<PageFlipCallback> callbacks_; 145 std::queue<PageFlipCallback> callbacks_;
145 146
146 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice); 147 DISALLOW_COPY_AND_ASSIGN(MockDrmDevice);
147 }; 148 };
148 149
149 } // namespace ui 150 } // namespace ui
150 151
151 #endif // UI_OZONE_PLATFORM_DRM_GPU_MOCK_DRM_DEVICE_H_ 152 #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