| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 } | 219 } |
| 220 ~SurfaceOzoneEgltest() override { | 220 ~SurfaceOzoneEgltest() override { |
| 221 bool ret = eglplatform_shim_->ShimReleaseNativeWindow(native_window_); | 221 bool ret = eglplatform_shim_->ShimReleaseNativeWindow(native_window_); |
| 222 DCHECK(ret); | 222 DCHECK(ret); |
| 223 } | 223 } |
| 224 | 224 |
| 225 intptr_t GetNativeWindow() override { return native_window_; } | 225 intptr_t GetNativeWindow() override { return native_window_; } |
| 226 | 226 |
| 227 bool OnSwapBuffers() override { return true; } | 227 bool OnSwapBuffers() override { return true; } |
| 228 | 228 |
| 229 bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) override { | 229 void OnSwapBuffersAsync(const SwapCompletionCallback& callback) override { |
| 230 callback.Run(gfx::SwapResult::SWAP_ACK); | 230 callback.Run(gfx::SwapResult::SWAP_ACK); |
| 231 return true; | |
| 232 } | 231 } |
| 233 | 232 |
| 234 bool ResizeNativeWindow(const gfx::Size& viewport_size) override { | 233 bool ResizeNativeWindow(const gfx::Size& viewport_size) override { |
| 235 return true; | 234 return true; |
| 236 } | 235 } |
| 237 | 236 |
| 238 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override { | 237 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override { |
| 239 return nullptr; | 238 return nullptr; |
| 240 } | 239 } |
| 241 | 240 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 | 416 |
| 418 } // namespace | 417 } // namespace |
| 419 | 418 |
| 420 OzonePlatform* CreateOzonePlatformEgltest() { | 419 OzonePlatform* CreateOzonePlatformEgltest() { |
| 421 OzonePlatformEgltest* platform = new OzonePlatformEgltest; | 420 OzonePlatformEgltest* platform = new OzonePlatformEgltest; |
| 422 platform->Initialize(); | 421 platform->Initialize(); |
| 423 return platform; | 422 return platform; |
| 424 } | 423 } |
| 425 | 424 |
| 426 } // namespace ui | 425 } // namespace ui |
| OLD | NEW |