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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_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
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/drm_buffer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DRM_BUFFER_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_BUFFER_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_BUFFER_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_BUFFER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 22 matching lines...) Expand all
33 // used for modesetting. 33 // used for modesetting.
34 bool Initialize(const SkImageInfo& info, bool should_register_framebuffer); 34 bool Initialize(const SkImageInfo& info, bool should_register_framebuffer);
35 35
36 SkCanvas* GetCanvas() const; 36 SkCanvas* GetCanvas() const;
37 37
38 // ScanoutBuffer: 38 // ScanoutBuffer:
39 uint32_t GetFramebufferId() const override; 39 uint32_t GetFramebufferId() const override;
40 uint32_t GetFramebufferPixelFormat() const override; 40 uint32_t GetFramebufferPixelFormat() const override;
41 uint32_t GetHandle() const override; 41 uint32_t GetHandle() const override;
42 gfx::Size GetSize() const override; 42 gfx::Size GetSize() const override;
43 const DrmDevice* GetDrmDevice() const override;
43 bool RequiresGlFinish() const override; 44 bool RequiresGlFinish() const override;
44 45
45 protected: 46 protected:
46 ~DrmBuffer() override; 47 ~DrmBuffer() override;
47 48
48 scoped_refptr<DrmDevice> drm_; 49 scoped_refptr<DrmDevice> drm_;
49 50
50 // Length of a row of pixels. 51 // Length of a row of pixels.
51 uint32_t stride_ = 0; 52 uint32_t stride_ = 0;
52 53
(...skipping 15 matching lines...) Expand all
68 69
69 // Wrapper around the native pixel memory. 70 // Wrapper around the native pixel memory.
70 sk_sp<SkSurface> surface_; 71 sk_sp<SkSurface> surface_;
71 72
72 DISALLOW_COPY_AND_ASSIGN(DrmBuffer); 73 DISALLOW_COPY_AND_ASSIGN(DrmBuffer);
73 }; 74 };
74 75
75 } // namespace ui 76 } // namespace ui
76 77
77 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_BUFFER_H_ 78 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_BUFFER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/drm_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698