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

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

Issue 781683005: Ozone: Avoid blocking in Swapbuffer Call. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unintended changes. Created 6 years 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 bool OnSwapBuffers() override { return true; } 208 bool OnSwapBuffers() override { return true; }
209 209
210 bool ResizeNativeWindow(const gfx::Size& viewport_size) override { 210 bool ResizeNativeWindow(const gfx::Size& viewport_size) override {
211 return true; 211 return true;
212 } 212 }
213 213
214 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override { 214 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override {
215 return scoped_ptr<gfx::VSyncProvider>(); 215 return scoped_ptr<gfx::VSyncProvider>();
216 } 216 }
217 217
218 void SetPageFlipCompletionCallback(
219 const PageFlipCompletionCallback& callback) override {}
220
218 private: 221 private:
219 LibeglplatformShimLoader* eglplatform_shim_; 222 LibeglplatformShimLoader* eglplatform_shim_;
220 intptr_t native_window_; 223 intptr_t native_window_;
221 }; 224 };
222 225
223 // EGL surface factory for libeglplatform_shim. 226 // EGL surface factory for libeglplatform_shim.
224 // 227 //
225 // This finds the right EGL/GLES2 libraries for loading, and creates 228 // This finds the right EGL/GLES2 libraries for loading, and creates
226 // a single native window via ShimCreateWindow for drawing 229 // a single native window via ShimCreateWindow for drawing
227 // into. 230 // into.
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 384
382 } // namespace 385 } // namespace
383 386
384 OzonePlatform* CreateOzonePlatformEgltest() { 387 OzonePlatform* CreateOzonePlatformEgltest() {
385 OzonePlatformEgltest* platform = new OzonePlatformEgltest; 388 OzonePlatformEgltest* platform = new OzonePlatformEgltest;
386 platform->Initialize(); 389 platform->Initialize();
387 return platform; 390 return platform;
388 } 391 }
389 392
390 } // namespace ui 393 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698