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

Side by Side Diff: ui/ozone/platform/dri/test/mock_dri_wrapper.h

Issue 838633002: [Ozone-DRI] Reuse framebuffer when re-enabling CRTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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 #ifndef UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_
6 #define UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ 6 #define UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 controllers_ = controllers; 56 controllers_ = controllers;
57 } 57 }
58 58
59 // DriWrapper: 59 // DriWrapper:
60 ScopedDrmCrtcPtr GetCrtc(uint32_t crtc_id) override; 60 ScopedDrmCrtcPtr GetCrtc(uint32_t crtc_id) override;
61 bool SetCrtc(uint32_t crtc_id, 61 bool SetCrtc(uint32_t crtc_id,
62 uint32_t framebuffer, 62 uint32_t framebuffer,
63 std::vector<uint32_t> connectors, 63 std::vector<uint32_t> connectors,
64 drmModeModeInfo* mode) override; 64 drmModeModeInfo* mode) override;
65 bool SetCrtc(drmModeCrtc* crtc, std::vector<uint32_t> connectors) override; 65 bool SetCrtc(drmModeCrtc* crtc, std::vector<uint32_t> connectors) override;
66 bool DisableCrtc(uint32_t crtc_id) override;
66 ScopedDrmConnectorPtr GetConnector(uint32_t connector_id) override; 67 ScopedDrmConnectorPtr GetConnector(uint32_t connector_id) override;
67 bool AddFramebuffer(uint32_t width, 68 bool AddFramebuffer(uint32_t width,
68 uint32_t height, 69 uint32_t height,
69 uint8_t depth, 70 uint8_t depth,
70 uint8_t bpp, 71 uint8_t bpp,
71 uint32_t stride, 72 uint32_t stride,
72 uint32_t handle, 73 uint32_t handle,
73 uint32_t* framebuffer) override; 74 uint32_t* framebuffer) override;
74 bool RemoveFramebuffer(uint32_t framebuffer) override; 75 bool RemoveFramebuffer(uint32_t framebuffer) override;
75 ScopedDrmFramebufferPtr GetFramebuffer(uint32_t framebuffer) override; 76 ScopedDrmFramebufferPtr GetFramebuffer(uint32_t framebuffer) override;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 std::vector<skia::RefPtr<SkSurface> > buffers_; 122 std::vector<skia::RefPtr<SkSurface> > buffers_;
122 123
123 std::queue<CrtcController*> controllers_; 124 std::queue<CrtcController*> controllers_;
124 125
125 DISALLOW_COPY_AND_ASSIGN(MockDriWrapper); 126 DISALLOW_COPY_AND_ASSIGN(MockDriWrapper);
126 }; 127 };
127 128
128 } // namespace ui 129 } // namespace ui
129 130
130 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ 131 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/screen_manager_unittest.cc ('k') | ui/ozone/platform/dri/test/mock_dri_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698