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

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

Issue 1248713002: ozone: ClientPixmapManager passes VGEM fd from browser to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to lastest crrev.com/1128113011 Created 5 years, 5 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/file_descriptor_posix.h"
10 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
11 #include "base/path_service.h" 12 #include "base/path_service.h"
12 #include "base/threading/thread_checker.h" 13 #include "base/threading/thread_checker.h"
13 #include "library_loaders/libeglplatform_shim.h" 14 #include "library_loaders/libeglplatform_shim.h"
14 #include "third_party/khronos/EGL/egl.h" 15 #include "third_party/khronos/EGL/egl.h"
15 #include "ui/events/devices/device_data_manager.h" 16 #include "ui/events/devices/device_data_manager.h"
16 #include "ui/events/event.h" 17 #include "ui/events/event.h"
17 #include "ui/events/ozone/device/device_manager.h" 18 #include "ui/events/ozone/device/device_manager.h"
18 #include "ui/events/ozone/evdev/event_factory_evdev.h" 19 #include "ui/events/ozone/evdev/event_factory_evdev.h"
19 #include "ui/events/ozone/events_ozone.h" 20 #include "ui/events/ozone/events_ozone.h"
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 } 362 }
362 scoped_ptr<PlatformWindow> CreatePlatformWindow( 363 scoped_ptr<PlatformWindow> CreatePlatformWindow(
363 PlatformWindowDelegate* delegate, 364 PlatformWindowDelegate* delegate,
364 const gfx::Rect& bounds) override { 365 const gfx::Rect& bounds) override {
365 return make_scoped_ptr<PlatformWindow>(new EgltestWindow( 366 return make_scoped_ptr<PlatformWindow>(new EgltestWindow(
366 delegate, &eglplatform_shim_, event_factory_ozone_.get(), bounds)); 367 delegate, &eglplatform_shim_, event_factory_ozone_.get(), bounds));
367 } 368 }
368 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { 369 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override {
369 return make_scoped_ptr(new NativeDisplayDelegateOzone()); 370 return make_scoped_ptr(new NativeDisplayDelegateOzone());
370 } 371 }
372 base::FileDescriptor GetVirtualDeviceFd() override {
373 return base::FileDescriptor();
374 }
371 375
372 void InitializeUI() override { 376 void InitializeUI() override {
373 device_manager_ = CreateDeviceManager(); 377 device_manager_ = CreateDeviceManager();
374 overlay_manager_.reset(new StubOverlayManager()); 378 overlay_manager_.reset(new StubOverlayManager());
375 KeyboardLayoutEngineManager::SetKeyboardLayoutEngine( 379 KeyboardLayoutEngineManager::SetKeyboardLayoutEngine(
376 make_scoped_ptr(new StubKeyboardLayoutEngine())); 380 make_scoped_ptr(new StubKeyboardLayoutEngine()));
377 event_factory_ozone_.reset(new EventFactoryEvdev( 381 event_factory_ozone_.reset(new EventFactoryEvdev(
378 NULL, device_manager_.get(), 382 NULL, device_manager_.get(),
379 KeyboardLayoutEngineManager::GetKeyboardLayoutEngine())); 383 KeyboardLayoutEngineManager::GetKeyboardLayoutEngine()));
380 cursor_factory_ozone_.reset(new CursorFactoryOzone()); 384 cursor_factory_ozone_.reset(new CursorFactoryOzone());
(...skipping 22 matching lines...) Expand all
403 407
404 } // namespace 408 } // namespace
405 409
406 OzonePlatform* CreateOzonePlatformEgltest() { 410 OzonePlatform* CreateOzonePlatformEgltest() {
407 OzonePlatformEgltest* platform = new OzonePlatformEgltest; 411 OzonePlatformEgltest* platform = new OzonePlatformEgltest;
408 platform->Initialize(); 412 platform->Initialize();
409 return platform; 413 return platform;
410 } 414 }
411 415
412 } // namespace ui 416 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/ozone_platform_gbm.cc ('k') | ui/ozone/platform/test/ozone_platform_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698