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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) override { | 212 bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) override { |
213 callback.Run(); | 213 callback.Run(); |
214 return true; | 214 return true; |
215 } | 215 } |
216 | 216 |
217 bool ResizeNativeWindow(const gfx::Size& viewport_size) override { | 217 bool ResizeNativeWindow(const gfx::Size& viewport_size) override { |
218 return true; | 218 return true; |
219 } | 219 } |
220 | 220 |
221 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override { | 221 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override { |
222 return scoped_ptr<gfx::VSyncProvider>(); | 222 return nullptr; |
223 } | 223 } |
224 | 224 |
225 private: | 225 private: |
226 LibeglplatformShimLoader* eglplatform_shim_; | 226 LibeglplatformShimLoader* eglplatform_shim_; |
227 intptr_t native_window_; | 227 intptr_t native_window_; |
228 }; | 228 }; |
229 | 229 |
230 // EGL surface factory for libeglplatform_shim. | 230 // EGL surface factory for libeglplatform_shim. |
231 // | 231 // |
232 // This finds the right EGL/GLES2 libraries for loading, and creates | 232 // This finds the right EGL/GLES2 libraries for loading, and creates |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 | 390 |
391 } // namespace | 391 } // namespace |
392 | 392 |
393 OzonePlatform* CreateOzonePlatformEgltest() { | 393 OzonePlatform* CreateOzonePlatformEgltest() { |
394 OzonePlatformEgltest* platform = new OzonePlatformEgltest; | 394 OzonePlatformEgltest* platform = new OzonePlatformEgltest; |
395 platform->Initialize(); | 395 platform->Initialize(); |
396 return platform; | 396 return platform; |
397 } | 397 } |
398 | 398 |
399 } // namespace ui | 399 } // namespace ui |
OLD | NEW |