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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 virtual bool OnSwapBuffers() OVERRIDE { return true; } | 173 virtual bool OnSwapBuffers() OVERRIDE { return true; } |
174 | 174 |
175 virtual bool ResizeNativeWindow(const gfx::Size& viewport_size) OVERRIDE { | 175 virtual bool ResizeNativeWindow(const gfx::Size& viewport_size) OVERRIDE { |
176 return true; | 176 return true; |
177 } | 177 } |
178 | 178 |
179 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() OVERRIDE { | 179 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() OVERRIDE { |
180 return scoped_ptr<gfx::VSyncProvider>(); | 180 return scoped_ptr<gfx::VSyncProvider>(); |
181 } | 181 } |
182 | 182 |
| 183 virtual bool ScheduleOverlayPlane(int plane_z_order, |
| 184 gfx::OverlayTransform plane_transform, |
| 185 scoped_refptr<ui::NativePixmap> buffer, |
| 186 const gfx::Rect& display_bounds, |
| 187 const gfx::RectF& crop_rect) OVERRIDE { |
| 188 return false; |
| 189 } |
| 190 |
183 private: | 191 private: |
184 LibeglplatformShimLoader* eglplatform_shim_; | 192 LibeglplatformShimLoader* eglplatform_shim_; |
185 intptr_t native_window_; | 193 intptr_t native_window_; |
186 }; | 194 }; |
187 | 195 |
188 // EGL surface factory for libeglplatform_shim. | 196 // EGL surface factory for libeglplatform_shim. |
189 // | 197 // |
190 // This finds the right EGL/GLES2 libraries for loading, and creates | 198 // This finds the right EGL/GLES2 libraries for loading, and creates |
191 // a single native window via ShimCreateWindow for drawing | 199 // a single native window via ShimCreateWindow for drawing |
192 // into. | 200 // into. |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 | 387 |
380 } // namespace | 388 } // namespace |
381 | 389 |
382 OzonePlatform* CreateOzonePlatformEgltest() { | 390 OzonePlatform* CreateOzonePlatformEgltest() { |
383 OzonePlatformEgltest* platform = new OzonePlatformEgltest; | 391 OzonePlatformEgltest* platform = new OzonePlatformEgltest; |
384 platform->Initialize(); | 392 platform->Initialize(); |
385 return platform; | 393 return platform; |
386 } | 394 } |
387 | 395 |
388 } // namespace ui | 396 } // namespace ui |
OLD | NEW |