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

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

Issue 856423002: [Ozone-Dri] Decouple the IO helper thread from DriWrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gbm-wrapper
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 int add_framebuffer_call_count_; 109 int add_framebuffer_call_count_;
110 int remove_framebuffer_call_count_; 110 int remove_framebuffer_call_count_;
111 int page_flip_call_count_; 111 int page_flip_call_count_;
112 int overlay_flip_call_count_; 112 int overlay_flip_call_count_;
113 113
114 bool set_crtc_expectation_; 114 bool set_crtc_expectation_;
115 bool add_framebuffer_expectation_; 115 bool add_framebuffer_expectation_;
116 bool page_flip_expectation_; 116 bool page_flip_expectation_;
117 bool create_dumb_buffer_expectation_; 117 bool create_dumb_buffer_expectation_;
118 118
119 bool use_sync_flips_;
120
119 uint32_t current_framebuffer_; 121 uint32_t current_framebuffer_;
120 122
121 std::vector<skia::RefPtr<SkSurface> > buffers_; 123 std::vector<skia::RefPtr<SkSurface> > buffers_;
122 124
123 std::queue<PageFlipCallback> callbacks_; 125 std::queue<PageFlipCallback> callbacks_;
124 126
125 DISALLOW_COPY_AND_ASSIGN(MockDriWrapper); 127 DISALLOW_COPY_AND_ASSIGN(MockDriWrapper);
126 }; 128 };
127 129
128 } // namespace ui 130 } // namespace ui
129 131
130 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ 132 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/ozone_platform_gbm.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