| OLD | NEW |
| 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/SkCanvas.h" | 8 #include "third_party/skia/include/core/SkCanvas.h" |
| 9 #include "third_party/skia/include/core/SkSurface.h" | 9 #include "third_party/skia/include/core/SkSurface.h" |
| 10 #include "ui/gfx/skia_util.h" | 10 #include "ui/gfx/skia_util.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 0, | 93 0, |
| 94 0, | 94 0, |
| 95 caca_get_canvas_width(canvas), | 95 caca_get_canvas_width(canvas), |
| 96 caca_get_canvas_height(canvas), | 96 caca_get_canvas_height(canvas), |
| 97 dither_.get(), | 97 dither_.get(), |
| 98 static_cast<const uint8_t*>(pixels)); | 98 static_cast<const uint8_t*>(pixels)); |
| 99 caca_refresh_display(window_->display()); | 99 caca_refresh_display(window_->display()); |
| 100 } | 100 } |
| 101 | 101 |
| 102 scoped_ptr<gfx::VSyncProvider> CacaSurface::CreateVSyncProvider() { | 102 scoped_ptr<gfx::VSyncProvider> CacaSurface::CreateVSyncProvider() { |
| 103 return scoped_ptr<gfx::VSyncProvider>(); | 103 return nullptr; |
| 104 } | 104 } |
| 105 | 105 |
| 106 } // namespace | 106 } // namespace |
| 107 | 107 |
| 108 CacaWindowManager::CacaWindowManager() { | 108 CacaWindowManager::CacaWindowManager() { |
| 109 } | 109 } |
| 110 | 110 |
| 111 int32_t CacaWindowManager::AddWindow(CacaWindow* window) { | 111 int32_t CacaWindowManager::AddWindow(CacaWindow* window) { |
| 112 return windows_.Add(window); | 112 return windows_.Add(window); |
| 113 } | 113 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 131 CacaWindow* window = windows_.Lookup(widget); | 131 CacaWindow* window = windows_.Lookup(widget); |
| 132 DCHECK(window); | 132 DCHECK(window); |
| 133 | 133 |
| 134 scoped_ptr<CacaSurface> canvas(new CacaSurface(window)); | 134 scoped_ptr<CacaSurface> canvas(new CacaSurface(window)); |
| 135 bool initialized = canvas->Initialize(); | 135 bool initialized = canvas->Initialize(); |
| 136 DCHECK(initialized); | 136 DCHECK(initialized); |
| 137 return canvas.Pass(); | 137 return canvas.Pass(); |
| 138 } | 138 } |
| 139 | 139 |
| 140 } // namespace ui | 140 } // namespace ui |
| OLD | NEW |