OLD | NEW |
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/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/environment.h" | 8 #include "base/environment.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 virtual bool OnSwapBuffers() OVERRIDE { return true; } | 65 virtual bool OnSwapBuffers() OVERRIDE { return true; } |
66 | 66 |
67 virtual bool ResizeNativeWindow(const gfx::Size& viewport_size) OVERRIDE { | 67 virtual bool ResizeNativeWindow(const gfx::Size& viewport_size) OVERRIDE { |
68 return true; | 68 return true; |
69 } | 69 } |
70 | 70 |
71 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() OVERRIDE { | 71 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() OVERRIDE { |
72 return scoped_ptr<gfx::VSyncProvider>(); | 72 return scoped_ptr<gfx::VSyncProvider>(); |
73 } | 73 } |
74 | 74 |
| 75 virtual bool ScheduleOverlayPlane(int plane_z_order, |
| 76 gfx::OverlayTransform plane_transform, |
| 77 scoped_refptr<ui::NativePixmap> buffer, |
| 78 const gfx::Rect& display_bounds, |
| 79 const gfx::RectF& crop_rect) OVERRIDE { |
| 80 return false; |
| 81 } |
| 82 |
75 private: | 83 private: |
76 LibeglplatformShimLoader* eglplatform_shim_; | 84 LibeglplatformShimLoader* eglplatform_shim_; |
77 intptr_t native_window_; | 85 intptr_t native_window_; |
78 }; | 86 }; |
79 | 87 |
80 // EGL surface factory for libeglplatform_shim. | 88 // EGL surface factory for libeglplatform_shim. |
81 // | 89 // |
82 // This finds the right EGL/GLES2 libraries for loading, and creates | 90 // This finds the right EGL/GLES2 libraries for loading, and creates |
83 // a single native window via ShimCreateWindow for drawing | 91 // a single native window via ShimCreateWindow for drawing |
84 // into. | 92 // into. |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 | 303 |
296 } // namespace | 304 } // namespace |
297 | 305 |
298 OzonePlatform* CreateOzonePlatformEgltest() { | 306 OzonePlatform* CreateOzonePlatformEgltest() { |
299 OzonePlatformEgltest* platform = new OzonePlatformEgltest; | 307 OzonePlatformEgltest* platform = new OzonePlatformEgltest; |
300 platform->Initialize(); | 308 platform->Initialize(); |
301 return platform; | 309 return platform; |
302 } | 310 } |
303 | 311 |
304 } // namespace ui | 312 } // namespace ui |
OLD | NEW |