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/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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 } | 202 } |
203 ~SurfaceOzoneEgltest() { | 203 ~SurfaceOzoneEgltest() { |
204 bool ret = eglplatform_shim_->ShimReleaseNativeWindow(native_window_); | 204 bool ret = eglplatform_shim_->ShimReleaseNativeWindow(native_window_); |
205 DCHECK(ret); | 205 DCHECK(ret); |
206 } | 206 } |
207 | 207 |
208 intptr_t GetNativeWindow() override { return native_window_; } | 208 intptr_t GetNativeWindow() override { return native_window_; } |
209 | 209 |
210 bool OnSwapBuffers() override { return true; } | 210 bool OnSwapBuffers() override { return true; } |
211 | 211 |
| 212 bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) override { |
| 213 callback.Run(); |
| 214 return true; |
| 215 } |
| 216 |
212 bool ResizeNativeWindow(const gfx::Size& viewport_size) override { | 217 bool ResizeNativeWindow(const gfx::Size& viewport_size) override { |
213 return true; | 218 return true; |
214 } | 219 } |
215 | 220 |
216 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override { | 221 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override { |
217 return scoped_ptr<gfx::VSyncProvider>(); | 222 return scoped_ptr<gfx::VSyncProvider>(); |
218 } | 223 } |
219 | 224 |
220 private: | 225 private: |
221 LibeglplatformShimLoader* eglplatform_shim_; | 226 LibeglplatformShimLoader* eglplatform_shim_; |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 | 390 |
386 } // namespace | 391 } // namespace |
387 | 392 |
388 OzonePlatform* CreateOzonePlatformEgltest() { | 393 OzonePlatform* CreateOzonePlatformEgltest() { |
389 OzonePlatformEgltest* platform = new OzonePlatformEgltest; | 394 OzonePlatformEgltest* platform = new OzonePlatformEgltest; |
390 platform->Initialize(); | 395 platform->Initialize(); |
391 return platform; | 396 return platform; |
392 } | 397 } |
393 | 398 |
394 } // namespace ui | 399 } // namespace ui |
OLD | NEW |