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

Side by Side Diff: ui/ozone/platform/caca/caca_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 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/caca/caca_window_manager.h" 5 #include "ui/ozone/platform/caca/caca_window_manager.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "third_party/skia/include/core/SkBitmap.h" 8 #include "third_party/skia/include/core/SkBitmap.h"
9 #include "third_party/skia/include/core/SkCanvas.h" 9 #include "third_party/skia/include/core/SkCanvas.h"
10 #include "third_party/skia/include/core/SkSurface.h" 10 #include "third_party/skia/include/core/SkSurface.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 114 }
115 115
116 void CacaWindowManager::RemoveWindow(int window_id, CacaWindow* window) { 116 void CacaWindowManager::RemoveWindow(int window_id, CacaWindow* window) {
117 DCHECK_EQ(window, windows_.Lookup(window_id)); 117 DCHECK_EQ(window, windows_.Lookup(window_id));
118 windows_.Remove(window_id); 118 windows_.Remove(window_id);
119 } 119 }
120 120
121 CacaWindowManager::~CacaWindowManager() { 121 CacaWindowManager::~CacaWindowManager() {
122 } 122 }
123 123
124 ui::SurfaceFactoryOzone::HardwareState CacaWindowManager::InitializeHardware() {
125 return INITIALIZED;
126 }
127
128 void CacaWindowManager::ShutdownHardware() {
Ken Russell (switch to Gerrit) 2014/07/18 22:01:01 There's seriously an Ozone port to libcaca?
spang 2014/07/18 22:11:11 Yeah it's been checked in since april.. we're left
129 }
130
131 gfx::AcceleratedWidget CacaWindowManager::GetAcceleratedWidget() { 124 gfx::AcceleratedWidget CacaWindowManager::GetAcceleratedWidget() {
132 NOTREACHED(); 125 NOTREACHED();
133 return gfx::kNullAcceleratedWidget; 126 return gfx::kNullAcceleratedWidget;
134 } 127 }
135 128
136 bool CacaWindowManager::LoadEGLGLES2Bindings( 129 bool CacaWindowManager::LoadEGLGLES2Bindings(
137 AddGLLibraryCallback add_gl_library, 130 AddGLLibraryCallback add_gl_library,
138 SetGLGetProcAddressProcCallback set_gl_get_proc_address) { 131 SetGLGetProcAddressProcCallback set_gl_get_proc_address) {
139 NOTREACHED(); 132 NOTREACHED();
140 return false; 133 return false;
141 } 134 }
142 135
143 scoped_ptr<ui::SurfaceOzoneCanvas> CacaWindowManager::CreateCanvasForWidget( 136 scoped_ptr<ui::SurfaceOzoneCanvas> CacaWindowManager::CreateCanvasForWidget(
144 gfx::AcceleratedWidget widget) { 137 gfx::AcceleratedWidget widget) {
145 CacaWindow* window = windows_.Lookup(widget); 138 CacaWindow* window = windows_.Lookup(widget);
146 DCHECK(window); 139 DCHECK(window);
147 140
148 scoped_ptr<CacaSurface> canvas(new CacaSurface(window)); 141 scoped_ptr<CacaSurface> canvas(new CacaSurface(window));
149 CHECK(canvas->Initialize()); 142 CHECK(canvas->Initialize());
150 return canvas.PassAs<ui::SurfaceOzoneCanvas>(); 143 return canvas.PassAs<ui::SurfaceOzoneCanvas>();
151 } 144 }
152 145
153 } // namespace ui 146 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698