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

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

Issue 1780013002: Fix black screen when switching primary display without bounds change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build failure in MockScanoutBuffer (again! sorry) 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_scanout_buffer.h" 5 #include "ui/ozone/platform/drm/gpu/mock_scanout_buffer.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 MockScanoutBuffer::MockScanoutBuffer(const gfx::Size& size, uint32_t format) 9 MockScanoutBuffer::MockScanoutBuffer(const gfx::Size& size, uint32_t format)
10 : size_(size), format_(format) {} 10 : size_(size), format_(format) {}
11 11
12 MockScanoutBuffer::~MockScanoutBuffer() {} 12 MockScanoutBuffer::~MockScanoutBuffer() {}
13 13
14 uint32_t MockScanoutBuffer::GetFramebufferId() const { 14 uint32_t MockScanoutBuffer::GetFramebufferId() const {
15 return 1; 15 return 1;
16 } 16 }
17 17
18 uint32_t MockScanoutBuffer::GetHandle() const { 18 uint32_t MockScanoutBuffer::GetHandle() const {
19 return 0; 19 return 0;
20 } 20 }
21 21
22 gfx::Size MockScanoutBuffer::GetSize() const { 22 gfx::Size MockScanoutBuffer::GetSize() const {
23 return size_; 23 return size_;
24 } 24 }
25 25
26 uint32_t MockScanoutBuffer::GetFramebufferPixelFormat() const { 26 uint32_t MockScanoutBuffer::GetFramebufferPixelFormat() const {
27 return format_; 27 return format_;
28 } 28 }
29 29
30 const DrmDevice* MockScanoutBuffer::GetDrmDevice() const {
31 return nullptr;
32 }
33
30 bool MockScanoutBuffer::RequiresGlFinish() const { 34 bool MockScanoutBuffer::RequiresGlFinish() const {
31 return false; 35 return false;
32 } 36 }
33 37
34 } // namespace ui 38 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/mock_scanout_buffer.h ('k') | ui/ozone/platform/drm/gpu/scanout_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698