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/egltest/ozone_platform_egltest.cc

Issue 1084173004: Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix ozone demo Created 5 years, 6 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 #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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 ~SurfaceOzoneEgltest() override { 209 ~SurfaceOzoneEgltest() override {
210 bool ret = eglplatform_shim_->ShimReleaseNativeWindow(native_window_); 210 bool ret = eglplatform_shim_->ShimReleaseNativeWindow(native_window_);
211 DCHECK(ret); 211 DCHECK(ret);
212 } 212 }
213 213
214 intptr_t GetNativeWindow() override { return native_window_; } 214 intptr_t GetNativeWindow() override { return native_window_; }
215 215
216 bool OnSwapBuffers() override { return true; } 216 bool OnSwapBuffers() override { return true; }
217 217
218 bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) override { 218 bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) override {
219 callback.Run(); 219 callback.Run(gfx::SwapResult::SWAP_ACK);
220 return true; 220 return true;
221 } 221 }
222 222
223 bool ResizeNativeWindow(const gfx::Size& viewport_size) override { 223 bool ResizeNativeWindow(const gfx::Size& viewport_size) override {
224 return true; 224 return true;
225 } 225 }
226 226
227 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override { 227 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override {
228 return nullptr; 228 return nullptr;
229 } 229 }
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 403
404 } // namespace 404 } // namespace
405 405
406 OzonePlatform* CreateOzonePlatformEgltest() { 406 OzonePlatform* CreateOzonePlatformEgltest() {
407 OzonePlatformEgltest* platform = new OzonePlatformEgltest; 407 OzonePlatformEgltest* platform = new OzonePlatformEgltest;
408 platform->Initialize(); 408 platform->Initialize();
409 return platform; 409 return platform;
410 } 410 }
411 411
412 } // namespace ui 412 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/screen_manager_unittest.cc ('k') | ui/ozone/public/surface_ozone_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698