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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 ~SurfaceOzoneEgltest() override { | 209 ~SurfaceOzoneEgltest() override { |
210 bool ret = eglplatform_shim_->ShimReleaseNativeWindow(native_window_); | 210 bool ret = eglplatform_shim_->ShimReleaseNativeWindow(native_window_); |
211 DCHECK(ret); | 211 DCHECK(ret); |
212 } | 212 } |
213 | 213 |
214 intptr_t GetNativeWindow() override { return native_window_; } | 214 intptr_t GetNativeWindow() override { return native_window_; } |
215 | 215 |
216 bool OnSwapBuffers() override { return true; } | 216 bool OnSwapBuffers() override { return true; } |
217 | 217 |
218 bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) override { | 218 bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) override { |
219 callback.Run(); | 219 callback.Run(gfx::SwapResult::SWAP_ACK); |
220 return true; | 220 return true; |
221 } | 221 } |
222 | 222 |
223 bool ResizeNativeWindow(const gfx::Size& viewport_size) override { | 223 bool ResizeNativeWindow(const gfx::Size& viewport_size) override { |
224 return true; | 224 return true; |
225 } | 225 } |
226 | 226 |
227 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override { | 227 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override { |
228 return nullptr; | 228 return nullptr; |
229 } | 229 } |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 | 403 |
404 } // namespace | 404 } // namespace |
405 | 405 |
406 OzonePlatform* CreateOzonePlatformEgltest() { | 406 OzonePlatform* CreateOzonePlatformEgltest() { |
407 OzonePlatformEgltest* platform = new OzonePlatformEgltest; | 407 OzonePlatformEgltest* platform = new OzonePlatformEgltest; |
408 platform->Initialize(); | 408 platform->Initialize(); |
409 return platform; | 409 return platform; |
410 } | 410 } |
411 | 411 |
412 } // namespace ui | 412 } // namespace ui |
OLD | NEW |