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

Unified 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: remove new evernt type, add direct route from event -> platform window 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 side-by-side diff with in-line comments
Download patch
Index: ui/ozone/platform/egltest/ozone_platform_egltest.cc
diff --git a/ui/ozone/platform/egltest/ozone_platform_egltest.cc b/ui/ozone/platform/egltest/ozone_platform_egltest.cc
index d6d0850e5e072da8db101e26ec19f302139f5d1d..427dc73541d2b664edc5d866dc2f6f8fbb1e2827 100644
--- a/ui/ozone/platform/egltest/ozone_platform_egltest.cc
+++ b/ui/ozone/platform/egltest/ozone_platform_egltest.cc
@@ -215,6 +215,8 @@ class SurfaceOzoneEgltest : public SurfaceOzoneEGL {
return scoped_ptr<gfx::VSyncProvider>();
}
+ bool SupportsPartialSwap() override { return true; }
+
private:
LibeglplatformShimLoader* eglplatform_shim_;
intptr_t native_window_;
@@ -235,7 +237,8 @@ class SurfaceFactoryEgltest : public ui::SurfaceFactoryOzone {
intptr_t GetNativeDisplay() override;
scoped_ptr<SurfaceOzoneEGL> CreateEGLSurfaceForWidget(
gfx::AcceleratedWidget widget) override;
- const int32* GetEGLSurfaceProperties(const int32* desired_list) override;
+ const int32* GetEGLSurfaceProperties(const int32* desired_list,
+ SurfaceOzoneEGL* surface) override;
bool LoadEGLGLES2Bindings(
AddGLLibraryCallback add_gl_library,
SetGLGetProcAddressProcCallback set_gl_get_proc_address) override;
@@ -270,7 +273,8 @@ bool SurfaceFactoryEgltest::LoadEGLGLES2Bindings(
}
const int32* SurfaceFactoryEgltest::GetEGLSurfaceProperties(
- const int32* desired_list) {
+ const int32* desired_list,
+ SurfaceOzoneEGL* surface) {
static const int32 broken_props[] = {
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL_SURFACE_TYPE, EGL_WINDOW_BIT | EGL_PBUFFER_BIT,

Powered by Google App Engine
This is Rietveld 408576698