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

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

Issue 960273003: ozone: dri: add synchronous SwapBuffers support on surfaceless (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 5 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 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 uint32_t height, 66 uint32_t height,
67 uint8_t depth, 67 uint8_t depth,
68 uint8_t bpp, 68 uint8_t bpp,
69 uint32_t stride, 69 uint32_t stride,
70 uint32_t handle, 70 uint32_t handle,
71 uint32_t* framebuffer) override; 71 uint32_t* framebuffer) override;
72 bool RemoveFramebuffer(uint32_t framebuffer) override; 72 bool RemoveFramebuffer(uint32_t framebuffer) override;
73 ScopedDrmFramebufferPtr GetFramebuffer(uint32_t framebuffer) override; 73 ScopedDrmFramebufferPtr GetFramebuffer(uint32_t framebuffer) override;
74 bool PageFlip(uint32_t crtc_id, 74 bool PageFlip(uint32_t crtc_id,
75 uint32_t framebuffer, 75 uint32_t framebuffer,
76 bool is_sync,
76 const PageFlipCallback& callback) override; 77 const PageFlipCallback& callback) override;
77 bool PageFlipOverlay(uint32_t crtc_id, 78 bool PageFlipOverlay(uint32_t crtc_id,
78 uint32_t framebuffer, 79 uint32_t framebuffer,
79 const gfx::Rect& location, 80 const gfx::Rect& location,
80 const gfx::Rect& source, 81 const gfx::Rect& source,
81 int overlay_plane) override; 82 int overlay_plane) override;
82 ScopedDrmPropertyPtr GetProperty(drmModeConnector* connector, 83 ScopedDrmPropertyPtr GetProperty(drmModeConnector* connector,
83 const char* name) override; 84 const char* name) override;
84 bool SetProperty(uint32_t connector_id, 85 bool SetProperty(uint32_t connector_id,
85 uint32_t property_id, 86 uint32_t property_id,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 std::vector<skia::RefPtr<SkSurface> > buffers_; 125 std::vector<skia::RefPtr<SkSurface> > buffers_;
125 126
126 std::queue<PageFlipCallback> callbacks_; 127 std::queue<PageFlipCallback> callbacks_;
127 128
128 DISALLOW_COPY_AND_ASSIGN(MockDriWrapper); 129 DISALLOW_COPY_AND_ASSIGN(MockDriWrapper);
129 }; 130 };
130 131
131 } // namespace ui 132 } // namespace ui
132 133
133 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ 134 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/hardware_display_plane_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