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

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

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 #ifndef UI_OZONE_PLATFORM_DRM_GPU_MOCK_SCANOUT_BUFFER_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_MOCK_SCANOUT_BUFFER_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_MOCK_SCANOUT_BUFFER_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_MOCK_SCANOUT_BUFFER_H_
7 7
8 #include <drm_fourcc.h> 8 #include <drm_fourcc.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "ui/ozone/platform/drm/gpu/scanout_buffer.h" 12 #include "ui/ozone/platform/drm/gpu/scanout_buffer.h"
13 13
14 namespace ui { 14 namespace ui {
15 15
16 class MockScanoutBuffer : public ScanoutBuffer { 16 class MockScanoutBuffer : public ScanoutBuffer {
17 public: 17 public:
18 MockScanoutBuffer(const gfx::Size& size, 18 MockScanoutBuffer(const gfx::Size& size,
19 uint32_t format = DRM_FORMAT_XRGB8888); 19 uint32_t format = DRM_FORMAT_XRGB8888);
20 20
21 // ScanoutBuffer: 21 // ScanoutBuffer:
22 uint32_t GetFramebufferId() const override; 22 uint32_t GetFramebufferId() const override;
23 uint32_t GetHandle() const override; 23 uint32_t GetHandle() const override;
24 gfx::Size GetSize() const override; 24 gfx::Size GetSize() const override;
25 uint32_t GetFramebufferPixelFormat() const override; 25 uint32_t GetFramebufferPixelFormat() const override;
26 const DrmDevice* GetDrmDevice() const override;
26 bool RequiresGlFinish() const override; 27 bool RequiresGlFinish() const override;
27 28
28 private: 29 private:
29 ~MockScanoutBuffer() override; 30 ~MockScanoutBuffer() override;
30 31
31 gfx::Size size_; 32 gfx::Size size_;
32 uint32_t format_; 33 uint32_t format_;
33 34
34 DISALLOW_COPY_AND_ASSIGN(MockScanoutBuffer); 35 DISALLOW_COPY_AND_ASSIGN(MockScanoutBuffer);
35 }; 36 };
36 37
37 } // namespace ui 38 } // namespace ui
38 39
39 #endif // UI_OZONE_PLATFORM_DRM_GPU_MOCK_SCANOUT_BUFFER_H_ 40 #endif // UI_OZONE_PLATFORM_DRM_GPU_MOCK_SCANOUT_BUFFER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_buffer_base.cc ('k') | ui/ozone/platform/drm/gpu/mock_scanout_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698