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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 CursorFactoryOzone* GetCursorFactoryOzone() override { | 350 CursorFactoryOzone* GetCursorFactoryOzone() override { |
351 return cursor_factory_ozone_.get(); | 351 return cursor_factory_ozone_.get(); |
352 } | 352 } |
353 GpuPlatformSupport* GetGpuPlatformSupport() override { | 353 GpuPlatformSupport* GetGpuPlatformSupport() override { |
354 return gpu_platform_support_.get(); | 354 return gpu_platform_support_.get(); |
355 } | 355 } |
356 GpuPlatformSupportHost* GetGpuPlatformSupportHost() override { | 356 GpuPlatformSupportHost* GetGpuPlatformSupportHost() override { |
357 return gpu_platform_support_host_.get(); | 357 return gpu_platform_support_host_.get(); |
358 } | 358 } |
359 scoped_ptr<SystemInputInjector> CreateSystemInputInjector() override { | 359 scoped_ptr<SystemInputInjector> CreateSystemInputInjector() override { |
360 return nullptr; // no input injection support. | 360 return nullptr; // no input injection support. |
361 } | 361 } |
362 scoped_ptr<PlatformWindow> CreatePlatformWindow( | 362 scoped_ptr<PlatformWindow> CreatePlatformWindow( |
363 PlatformWindowDelegate* delegate, | 363 PlatformWindowDelegate* delegate, |
364 const gfx::Rect& bounds) override { | 364 const gfx::Rect& bounds) override { |
365 return make_scoped_ptr<PlatformWindow>( | 365 return make_scoped_ptr<PlatformWindow>( |
366 new EgltestWindow(delegate, | 366 new EgltestWindow(delegate, |
367 &eglplatform_shim_, | 367 &eglplatform_shim_, |
368 event_factory_ozone_.get(), | 368 event_factory_ozone_.get(), |
369 bounds)); | 369 bounds)); |
370 } | 370 } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 | 406 |
407 } // namespace | 407 } // namespace |
408 | 408 |
409 OzonePlatform* CreateOzonePlatformEgltest() { | 409 OzonePlatform* CreateOzonePlatformEgltest() { |
410 OzonePlatformEgltest* platform = new OzonePlatformEgltest; | 410 OzonePlatformEgltest* platform = new OzonePlatformEgltest; |
411 platform->Initialize(); | 411 platform->Initialize(); |
412 return platform; | 412 return platform; |
413 } | 413 } |
414 | 414 |
415 } // namespace ui | 415 } // namespace ui |
OLD | NEW |