Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: ui/ozone/platform/egltest/ozone_platform_egltest.cc

Issue 1128113011: ozone: Introduce ClientPixmap and ClientPixmapFactory for non-GPU processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduce NativePixmapClient Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/threading/thread_checker.h" 12 #include "base/threading/thread_checker.h"
13 #include "library_loaders/libeglplatform_shim.h" 13 #include "library_loaders/libeglplatform_shim.h"
14 #include "third_party/khronos/EGL/egl.h" 14 #include "third_party/khronos/EGL/egl.h"
15 #include "ui/events/devices/device_data_manager.h" 15 #include "ui/events/devices/device_data_manager.h"
16 #include "ui/events/event.h" 16 #include "ui/events/event.h"
17 #include "ui/events/ozone/device/device_manager.h" 17 #include "ui/events/ozone/device/device_manager.h"
18 #include "ui/events/ozone/evdev/event_factory_evdev.h" 18 #include "ui/events/ozone/evdev/event_factory_evdev.h"
19 #include "ui/events/ozone/events_ozone.h" 19 #include "ui/events/ozone/events_ozone.h"
20 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" 20 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h"
21 #include "ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h" 21 #include "ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h"
22 #include "ui/events/platform/platform_event_dispatcher.h" 22 #include "ui/events/platform/platform_event_dispatcher.h"
23 #include "ui/gfx/vsync_provider.h" 23 #include "ui/gfx/vsync_provider.h"
24 #include "ui/ozone/common/egl_util.h" 24 #include "ui/ozone/common/egl_util.h"
25 #include "ui/ozone/common/native_display_delegate_ozone.h" 25 #include "ui/ozone/common/native_display_delegate_ozone.h"
26 #include "ui/ozone/common/stub_overlay_manager.h" 26 #include "ui/ozone/common/stub_overlay_manager.h"
27 #include "ui/ozone/public/cursor_factory_ozone.h" 27 #include "ui/ozone/public/cursor_factory_ozone.h"
28 #include "ui/ozone/public/gpu_platform_support.h" 28 #include "ui/ozone/public/gpu_platform_support.h"
29 #include "ui/ozone/public/gpu_platform_support_host.h" 29 #include "ui/ozone/public/gpu_platform_support_host.h"
30 #include "ui/ozone/public/native_pixmap_client.h"
30 #include "ui/ozone/public/ozone_platform.h" 31 #include "ui/ozone/public/ozone_platform.h"
31 #include "ui/ozone/public/ozone_switches.h" 32 #include "ui/ozone/public/ozone_switches.h"
32 #include "ui/ozone/public/surface_factory_ozone.h" 33 #include "ui/ozone/public/surface_factory_ozone.h"
33 #include "ui/ozone/public/surface_ozone_egl.h" 34 #include "ui/ozone/public/surface_ozone_egl.h"
34 #include "ui/ozone/public/system_input_injector.h" 35 #include "ui/ozone/public/system_input_injector.h"
35 #include "ui/platform_window/platform_window.h" 36 #include "ui/platform_window/platform_window.h"
36 #include "ui/platform_window/platform_window_delegate.h" 37 #include "ui/platform_window/platform_window_delegate.h"
37 38
38 namespace ui { 39 namespace ui {
39 40
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_; 395 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_;
395 scoped_ptr<GpuPlatformSupport> gpu_platform_support_; 396 scoped_ptr<GpuPlatformSupport> gpu_platform_support_;
396 scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_; 397 scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_;
397 scoped_ptr<OverlayManagerOzone> overlay_manager_; 398 scoped_ptr<OverlayManagerOzone> overlay_manager_;
398 399
399 bool shim_initialized_; 400 bool shim_initialized_;
400 401
401 DISALLOW_COPY_AND_ASSIGN(OzonePlatformEgltest); 402 DISALLOW_COPY_AND_ASSIGN(OzonePlatformEgltest);
402 }; 403 };
403 404
405 class NativePixmapClientEgltest : public NativePixmapClient {
406 public:
407 NativePixmapClientEgltest() {}
408 ~NativePixmapClientEgltest() override {}
409
410 private:
411 DISALLOW_COPY_AND_ASSIGN(NativePixmapClientEgltest);
412 };
413
404 } // namespace 414 } // namespace
405 415
406 OzonePlatform* CreateOzonePlatformEgltest() { 416 OzonePlatform* CreateOzonePlatformEgltest() {
407 OzonePlatformEgltest* platform = new OzonePlatformEgltest; 417 OzonePlatformEgltest* platform = new OzonePlatformEgltest;
408 platform->Initialize(); 418 platform->Initialize();
409 return platform; 419 return platform;
410 } 420 }
411 421
422 NativePixmapClient* CreateNativePixmapClientEgltest() {
423 return new NativePixmapClientEgltest;
424 }
425
412 } // namespace ui 426 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698