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

Side by Side Diff: ui/ozone/platform/test/ozone_platform_test.cc

Issue 341253002: Revert of Revert of ozone: gpu: Add plumbing for platform-specific gpu messaging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/test/ozone_platform_test.h" 5 #include "ui/ozone/platform/test/ozone_platform_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "ui/events/ozone/device/device_manager.h" 9 #include "ui/events/ozone/device/device_manager.h"
10 #include "ui/events/ozone/evdev/event_factory_evdev.h" 10 #include "ui/events/ozone/evdev/event_factory_evdev.h"
(...skipping 22 matching lines...) Expand all
33 // OzonePlatform: 33 // OzonePlatform:
34 virtual ui::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE { 34 virtual ui::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE {
35 return surface_factory_ozone_.get(); 35 return surface_factory_ozone_.get();
36 } 36 }
37 virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE { 37 virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE {
38 return event_factory_ozone_.get(); 38 return event_factory_ozone_.get();
39 } 39 }
40 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE { 40 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE {
41 return cursor_factory_ozone_.get(); 41 return cursor_factory_ozone_.get();
42 } 42 }
43 virtual GpuPlatformSupport* GetGpuPlatformSupport() OVERRIDE {
44 return NULL; // no GPU support
45 }
46 virtual GpuPlatformSupportHost* GetGpuPlatformSupportHost() OVERRIDE {
47 return NULL; // no GPU support
48 }
43 49
44 #if defined(OS_CHROMEOS) 50 #if defined(OS_CHROMEOS)
45 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() 51 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate()
46 OVERRIDE { 52 OVERRIDE {
47 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone()); 53 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone());
48 } 54 }
49 virtual scoped_ptr<TouchscreenDeviceManager> 55 virtual scoped_ptr<TouchscreenDeviceManager>
50 CreateTouchscreenDeviceManager() OVERRIDE { 56 CreateTouchscreenDeviceManager() OVERRIDE {
51 return scoped_ptr<TouchscreenDeviceManager>( 57 return scoped_ptr<TouchscreenDeviceManager>(
52 new TouchscreenDeviceManagerOzone()); 58 new TouchscreenDeviceManagerOzone());
(...skipping 24 matching lines...) Expand all
77 83
78 OzonePlatform* CreateOzonePlatformTest() { 84 OzonePlatform* CreateOzonePlatformTest() {
79 CommandLine* cmd = CommandLine::ForCurrentProcess(); 85 CommandLine* cmd = CommandLine::ForCurrentProcess();
80 base::FilePath location = base::FilePath("/dev/null"); 86 base::FilePath location = base::FilePath("/dev/null");
81 if (cmd->HasSwitch(switches::kOzoneDumpFile)) 87 if (cmd->HasSwitch(switches::kOzoneDumpFile))
82 location = cmd->GetSwitchValuePath(switches::kOzoneDumpFile); 88 location = cmd->GetSwitchValuePath(switches::kOzoneDumpFile);
83 return new OzonePlatformTest(location); 89 return new OzonePlatformTest(location);
84 } 90 }
85 91
86 } // namespace ui 92 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/egltest/ozone_platform_egltest.cc ('k') | ui/ozone/public/gpu_platform_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698