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

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

Issue 2743403005: ozone: Add an opaque fb to ScanoutBuffer for primary planes. (Closed)
Patch Set: Replace PrimaryPlane with Opaque. Created 3 years, 9 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::GetOpaqueFramebufferId() const {
19 return 2;
20 }
21
18 uint32_t MockScanoutBuffer::GetHandle() const { 22 uint32_t MockScanoutBuffer::GetHandle() const {
19 return 0; 23 return 0;
20 } 24 }
21 25
22 gfx::Size MockScanoutBuffer::GetSize() const { 26 gfx::Size MockScanoutBuffer::GetSize() const {
23 return size_; 27 return size_;
24 } 28 }
25 29
26 uint32_t MockScanoutBuffer::GetFramebufferPixelFormat() const { 30 uint32_t MockScanoutBuffer::GetFramebufferPixelFormat() const {
27 return format_; 31 return format_;
28 } 32 }
29 33
34 uint32_t MockScanoutBuffer::GetOpaqueFramebufferPixelFormat() const {
35 return format_;
36 }
37
30 const DrmDevice* MockScanoutBuffer::GetDrmDevice() const { 38 const DrmDevice* MockScanoutBuffer::GetDrmDevice() const {
31 return nullptr; 39 return nullptr;
32 } 40 }
33 41
34 bool MockScanoutBuffer::RequiresGlFinish() const { 42 bool MockScanoutBuffer::RequiresGlFinish() const {
35 return false; 43 return false;
36 } 44 }
37 45
38 } // namespace ui 46 } // 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