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

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

Issue 399953003: ozone: Remove InitializeHardware / ShutdownHardware (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | 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/test_window_manager.h" 5 #include "ui/ozone/platform/test/test_window_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 void TestWindowManager::RemoveWindow(int32_t window_id, TestWindow* window) { 85 void TestWindowManager::RemoveWindow(int32_t window_id, TestWindow* window) {
86 DCHECK_EQ(window, windows_.Lookup(window_id)); 86 DCHECK_EQ(window, windows_.Lookup(window_id));
87 windows_.Remove(window_id); 87 windows_.Remove(window_id);
88 } 88 }
89 89
90 base::FilePath TestWindowManager::base_path() const { 90 base::FilePath TestWindowManager::base_path() const {
91 return location_; 91 return location_;
92 } 92 }
93 93
94 SurfaceFactoryOzone::HardwareState TestWindowManager::InitializeHardware() {
95 return INITIALIZED;
96 }
97
98 void TestWindowManager::ShutdownHardware() {
99 }
100
101 gfx::AcceleratedWidget TestWindowManager::GetAcceleratedWidget() { 94 gfx::AcceleratedWidget TestWindowManager::GetAcceleratedWidget() {
102 NOTREACHED(); 95 NOTREACHED();
103 return -1; 96 return -1;
104 } 97 }
105 98
106 scoped_ptr<SurfaceOzoneCanvas> TestWindowManager::CreateCanvasForWidget( 99 scoped_ptr<SurfaceOzoneCanvas> TestWindowManager::CreateCanvasForWidget(
107 gfx::AcceleratedWidget widget) { 100 gfx::AcceleratedWidget widget) {
108 TestWindow* window = windows_.Lookup(widget); 101 TestWindow* window = windows_.Lookup(widget);
109 DCHECK(window); 102 DCHECK(window);
110 return make_scoped_ptr<SurfaceOzoneCanvas>(new FileSurface(window->path())); 103 return make_scoped_ptr<SurfaceOzoneCanvas>(new FileSurface(window->path()));
111 } 104 }
112 105
113 bool TestWindowManager::LoadEGLGLES2Bindings( 106 bool TestWindowManager::LoadEGLGLES2Bindings(
114 AddGLLibraryCallback add_gl_library, 107 AddGLLibraryCallback add_gl_library,
115 SetGLGetProcAddressProcCallback set_gl_get_proc_address) { 108 SetGLGetProcAddressProcCallback set_gl_get_proc_address) {
116 return false; 109 return false;
117 } 110 }
118 111
119 } // namespace ui 112 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698