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

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

Issue 855023003: Add presubmit check for scoped_ptr usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 11 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
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/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
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
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
OLDNEW
« no previous file with comments | « ui/message_center/views/toast_contents_view.cc ('k') | ui/ozone/platform/dri/gbm_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698