| 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost()); | 371 gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost()); |
| 372 } | 372 } |
| 373 | 373 |
| 374 void InitializeGPU() override { | 374 void InitializeGPU() override { |
| 375 if (!surface_factory_ozone_) | 375 if (!surface_factory_ozone_) |
| 376 surface_factory_ozone_.reset( | 376 surface_factory_ozone_.reset( |
| 377 new SurfaceFactoryEgltest(&eglplatform_shim_)); | 377 new SurfaceFactoryEgltest(&eglplatform_shim_)); |
| 378 gpu_platform_support_.reset(CreateStubGpuPlatformSupport()); | 378 gpu_platform_support_.reset(CreateStubGpuPlatformSupport()); |
| 379 } | 379 } |
| 380 | 380 |
| 381 void InitializeGpuPostMainLoop() override {} |
| 382 |
| 381 private: | 383 private: |
| 382 LibeglplatformShimLoader eglplatform_shim_; | 384 LibeglplatformShimLoader eglplatform_shim_; |
| 383 scoped_ptr<DeviceManager> device_manager_; | 385 scoped_ptr<DeviceManager> device_manager_; |
| 384 scoped_ptr<SurfaceFactoryEgltest> surface_factory_ozone_; | 386 scoped_ptr<SurfaceFactoryEgltest> surface_factory_ozone_; |
| 385 scoped_ptr<EventFactoryEvdev> event_factory_ozone_; | 387 scoped_ptr<EventFactoryEvdev> event_factory_ozone_; |
| 386 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_; | 388 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_; |
| 387 scoped_ptr<GpuPlatformSupport> gpu_platform_support_; | 389 scoped_ptr<GpuPlatformSupport> gpu_platform_support_; |
| 388 scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_; | 390 scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_; |
| 389 | 391 |
| 390 bool shim_initialized_; | 392 bool shim_initialized_; |
| 391 | 393 |
| 392 DISALLOW_COPY_AND_ASSIGN(OzonePlatformEgltest); | 394 DISALLOW_COPY_AND_ASSIGN(OzonePlatformEgltest); |
| 393 }; | 395 }; |
| 394 | 396 |
| 395 } // namespace | 397 } // namespace |
| 396 | 398 |
| 397 OzonePlatform* CreateOzonePlatformEgltest() { | 399 OzonePlatform* CreateOzonePlatformEgltest() { |
| 398 OzonePlatformEgltest* platform = new OzonePlatformEgltest; | 400 OzonePlatformEgltest* platform = new OzonePlatformEgltest; |
| 399 platform->Initialize(); | 401 platform->Initialize(); |
| 400 return platform; | 402 return platform; |
| 401 } | 403 } |
| 402 | 404 |
| 403 } // namespace ui | 405 } // namespace ui |
| OLD | NEW |