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

Side by Side Diff: ui/ozone/platform/caca/caca_window_manager.cc

Issue 416893002: ozone: demo: Add software support & use message loop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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/demo/ozone_demos.gyp ('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 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 bool CacaWindowManager::LoadEGLGLES2Bindings( 124 bool CacaWindowManager::LoadEGLGLES2Bindings(
125 AddGLLibraryCallback add_gl_library, 125 AddGLLibraryCallback add_gl_library,
126 SetGLGetProcAddressProcCallback set_gl_get_proc_address) { 126 SetGLGetProcAddressProcCallback set_gl_get_proc_address) {
127 NOTREACHED();
128 return false; 127 return false;
129 } 128 }
130 129
131 scoped_ptr<ui::SurfaceOzoneCanvas> CacaWindowManager::CreateCanvasForWidget( 130 scoped_ptr<ui::SurfaceOzoneCanvas> CacaWindowManager::CreateCanvasForWidget(
132 gfx::AcceleratedWidget widget) { 131 gfx::AcceleratedWidget widget) {
133 CacaWindow* window = windows_.Lookup(widget); 132 CacaWindow* window = windows_.Lookup(widget);
134 DCHECK(window); 133 DCHECK(window);
135 134
136 scoped_ptr<CacaSurface> canvas(new CacaSurface(window)); 135 scoped_ptr<CacaSurface> canvas(new CacaSurface(window));
137 CHECK(canvas->Initialize()); 136 CHECK(canvas->Initialize());
138 return canvas.PassAs<ui::SurfaceOzoneCanvas>(); 137 return canvas.PassAs<ui::SurfaceOzoneCanvas>();
139 } 138 }
140 139
141 } // namespace ui 140 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/demo/ozone_demos.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698