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

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

Issue 750593003: Ozone X11 platform Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 bool OnSwapBuffers() override { return true; } 206 bool OnSwapBuffers() override { return true; }
207 207
208 bool ResizeNativeWindow(const gfx::Size& viewport_size) override { 208 bool ResizeNativeWindow(const gfx::Size& viewport_size) override {
209 return true; 209 return true;
210 } 210 }
211 211
212 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override { 212 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override {
213 return scoped_ptr<gfx::VSyncProvider>(); 213 return scoped_ptr<gfx::VSyncProvider>();
214 } 214 }
215 215
216 bool SupportsPartialSwap() override { return true; }
217
216 private: 218 private:
217 LibeglplatformShimLoader* eglplatform_shim_; 219 LibeglplatformShimLoader* eglplatform_shim_;
218 intptr_t native_window_; 220 intptr_t native_window_;
219 }; 221 };
220 222
221 // EGL surface factory for libeglplatform_shim. 223 // EGL surface factory for libeglplatform_shim.
222 // 224 //
223 // This finds the right EGL/GLES2 libraries for loading, and creates 225 // This finds the right EGL/GLES2 libraries for loading, and creates
224 // a single native window via ShimCreateWindow for drawing 226 // a single native window via ShimCreateWindow for drawing
225 // into. 227 // into.
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 404
403 } // namespace 405 } // namespace
404 406
405 OzonePlatform* CreateOzonePlatformEgltest() { 407 OzonePlatform* CreateOzonePlatformEgltest() {
406 OzonePlatformEgltest* platform = new OzonePlatformEgltest; 408 OzonePlatformEgltest* platform = new OzonePlatformEgltest;
407 platform->Initialize(); 409 platform->Initialize();
408 return platform; 410 return platform;
409 } 411 }
410 412
411 } // namespace ui 413 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698