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

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

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 #include "ui/ozone/platform/drm/gpu/mock_drm_device.h" 5 #include "ui/ozone/platform/drm/gpu/mock_drm_device.h"
6 6
7 #include <xf86drm.h> 7 #include <xf86drm.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 219
220 bool MockDrmDevice::CommitProperties(drmModeAtomicReq* properties, 220 bool MockDrmDevice::CommitProperties(drmModeAtomicReq* properties,
221 uint32_t flags, 221 uint32_t flags,
222 uint32_t crtc_count, 222 uint32_t crtc_count,
223 const PageFlipCallback& callback) { 223 const PageFlipCallback& callback) {
224 return false; 224 return false;
225 } 225 }
226 226
227 bool MockDrmDevice::SetColorCorrection( 227 bool MockDrmDevice::SetColorCorrection(
228 uint32_t crtc_id, 228 uint32_t crtc_id,
229 const std::vector<GammaRampRGBEntry>& degamma_lut, 229 const std::vector<display::GammaRampRGBEntry>& degamma_lut,
230 const std::vector<GammaRampRGBEntry>& gamma_lut, 230 const std::vector<display::GammaRampRGBEntry>& gamma_lut,
231 const std::vector<float>& correction_matrix) { 231 const std::vector<float>& correction_matrix) {
232 return true; 232 return true;
233 } 233 }
234 234
235 bool MockDrmDevice::SetCapability(uint64_t capability, uint64_t value) { 235 bool MockDrmDevice::SetCapability(uint64_t capability, uint64_t value) {
236 return false; 236 return false;
237 } 237 }
238 238
239 void MockDrmDevice::RunCallbacks() { 239 void MockDrmDevice::RunCallbacks() {
240 while (!callbacks_.empty()) { 240 while (!callbacks_.empty()) {
241 PageFlipCallback callback = callbacks_.front(); 241 PageFlipCallback callback = callbacks_.front();
242 callbacks_.pop(); 242 callbacks_.pop();
243 callback.Run(0, 0, 0); 243 callback.Run(0, 0, 0);
244 } 244 }
245 } 245 }
246 246
247 } // namespace ui 247 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/mock_drm_device.h ('k') | ui/ozone/platform/drm/gpu/screen_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698