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

Side by Side Diff: ui/ozone/platform/egltest/ozone_platform_egltest.cc

Issue 837483003: [ozone] Add stub async swap buffers implementation to ozone surfaceless. (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
« no previous file with comments | « ui/ozone/platform/dri/gbm_surfaceless.cc ('k') | ui/ozone/public/surface_ozone_egl.h » ('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 #include "ui/ozone/platform/egltest/ozone_platform_egltest.h" 5 #include "ui/ozone/platform/egltest/ozone_platform_egltest.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 } 202 }
203 ~SurfaceOzoneEgltest() { 203 ~SurfaceOzoneEgltest() {
204 bool ret = eglplatform_shim_->ShimReleaseNativeWindow(native_window_); 204 bool ret = eglplatform_shim_->ShimReleaseNativeWindow(native_window_);
205 DCHECK(ret); 205 DCHECK(ret);
206 } 206 }
207 207
208 intptr_t GetNativeWindow() override { return native_window_; } 208 intptr_t GetNativeWindow() override { return native_window_; }
209 209
210 bool OnSwapBuffers() override { return true; } 210 bool OnSwapBuffers() override { return true; }
211 211
212 bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) override {
213 callback.Run();
214 return true;
215 }
216
212 bool ResizeNativeWindow(const gfx::Size& viewport_size) override { 217 bool ResizeNativeWindow(const gfx::Size& viewport_size) override {
213 return true; 218 return true;
214 } 219 }
215 220
216 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override { 221 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override {
217 return scoped_ptr<gfx::VSyncProvider>(); 222 return scoped_ptr<gfx::VSyncProvider>();
218 } 223 }
219 224
220 private: 225 private:
221 LibeglplatformShimLoader* eglplatform_shim_; 226 LibeglplatformShimLoader* eglplatform_shim_;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 390
386 } // namespace 391 } // namespace
387 392
388 OzonePlatform* CreateOzonePlatformEgltest() { 393 OzonePlatform* CreateOzonePlatformEgltest() {
389 OzonePlatformEgltest* platform = new OzonePlatformEgltest; 394 OzonePlatformEgltest* platform = new OzonePlatformEgltest;
390 platform->Initialize(); 395 platform->Initialize();
391 return platform; 396 return platform;
392 } 397 }
393 398
394 } // namespace ui 399 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/gbm_surfaceless.cc ('k') | ui/ozone/public/surface_ozone_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698