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

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

Issue 406093002: ozone: Remove GetAcceleratedWidget from SurfaceFactoryOzone (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « ui/ozone/platform/test/test_window_manager.h ('k') | ui/ozone/public/surface_factory_ozone.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 return location_; 91 return location_;
92 } 92 }
93 93
94 SurfaceFactoryOzone::HardwareState TestWindowManager::InitializeHardware() { 94 SurfaceFactoryOzone::HardwareState TestWindowManager::InitializeHardware() {
95 return INITIALIZED; 95 return INITIALIZED;
96 } 96 }
97 97
98 void TestWindowManager::ShutdownHardware() { 98 void TestWindowManager::ShutdownHardware() {
99 } 99 }
100 100
101 gfx::AcceleratedWidget TestWindowManager::GetAcceleratedWidget() {
102 NOTREACHED();
103 return -1;
104 }
105
106 scoped_ptr<SurfaceOzoneCanvas> TestWindowManager::CreateCanvasForWidget( 101 scoped_ptr<SurfaceOzoneCanvas> TestWindowManager::CreateCanvasForWidget(
107 gfx::AcceleratedWidget widget) { 102 gfx::AcceleratedWidget widget) {
108 TestWindow* window = windows_.Lookup(widget); 103 TestWindow* window = windows_.Lookup(widget);
109 DCHECK(window); 104 DCHECK(window);
110 return make_scoped_ptr<SurfaceOzoneCanvas>(new FileSurface(window->path())); 105 return make_scoped_ptr<SurfaceOzoneCanvas>(new FileSurface(window->path()));
111 } 106 }
112 107
113 bool TestWindowManager::LoadEGLGLES2Bindings( 108 bool TestWindowManager::LoadEGLGLES2Bindings(
114 AddGLLibraryCallback add_gl_library, 109 AddGLLibraryCallback add_gl_library,
115 SetGLGetProcAddressProcCallback set_gl_get_proc_address) { 110 SetGLGetProcAddressProcCallback set_gl_get_proc_address) {
116 return false; 111 return false;
117 } 112 }
118 113
119 } // namespace ui 114 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/test/test_window_manager.h ('k') | ui/ozone/public/surface_factory_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698