| 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/trace_event/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" |
| 11 #include "ui/gfx/vsync_provider.h" | 11 #include "ui/gfx/vsync_provider.h" |
| 12 #include "ui/ozone/platform/caca/caca_window.h" | 12 #include "ui/ozone/platform/caca/caca_window.h" |
| 13 #include "ui/ozone/platform/caca/scoped_caca_types.h" | 13 #include "ui/ozone/platform/caca/scoped_caca_types.h" |
| 14 #include "ui/ozone/public/surface_ozone_canvas.h" | 14 #include "ui/ozone/public/surface_ozone_canvas.h" |
| 15 | 15 |
| 16 namespace ui { | 16 namespace ui { |
| 17 | 17 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |