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

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

Issue 339793007: Revert of ozone: gpu: Add plumbing for platform-specific gpu messaging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « ui/ozone/platform/egltest/ozone_platform_egltest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/base/cursor/ozone/cursor_factory_ozone.h" 9 #include "ui/base/cursor/ozone/cursor_factory_ozone.h"
10 #include "ui/events/ozone/device/device_manager.h" 10 #include "ui/events/ozone/device/device_manager.h"
(...skipping 22 matching lines...) Expand all
33 // OzonePlatform: 33 // OzonePlatform:
34 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE { 34 virtual gfx::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 }
49 43
50 #if defined(OS_CHROMEOS) 44 #if defined(OS_CHROMEOS)
51 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() 45 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate()
52 OVERRIDE { 46 OVERRIDE {
53 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone()); 47 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone());
54 } 48 }
55 virtual scoped_ptr<TouchscreenDeviceManager> 49 virtual scoped_ptr<TouchscreenDeviceManager>
56 CreateTouchscreenDeviceManager() OVERRIDE { 50 CreateTouchscreenDeviceManager() OVERRIDE {
57 return scoped_ptr<TouchscreenDeviceManager>( 51 return scoped_ptr<TouchscreenDeviceManager>(
58 new TouchscreenDeviceManagerOzone()); 52 new TouchscreenDeviceManagerOzone());
(...skipping 24 matching lines...) Expand all
83 77
84 OzonePlatform* CreateOzonePlatformTest() { 78 OzonePlatform* CreateOzonePlatformTest() {
85 CommandLine* cmd = CommandLine::ForCurrentProcess(); 79 CommandLine* cmd = CommandLine::ForCurrentProcess();
86 base::FilePath location = base::FilePath("/dev/null"); 80 base::FilePath location = base::FilePath("/dev/null");
87 if (cmd->HasSwitch(switches::kOzoneDumpFile)) 81 if (cmd->HasSwitch(switches::kOzoneDumpFile))
88 location = cmd->GetSwitchValuePath(switches::kOzoneDumpFile); 82 location = cmd->GetSwitchValuePath(switches::kOzoneDumpFile);
89 return new OzonePlatformTest(location); 83 return new OzonePlatformTest(location);
90 } 84 }
91 85
92 } // namespace ui 86 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/egltest/ozone_platform_egltest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698