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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_console_buffer.cc

Issue 1942973002: Remove all uses of skia::RefPtr and stale includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: trybots missed one missing include? Created 4 years, 7 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/drm/gpu/drm_console_buffer.h" 5 #include "ui/ozone/platform/drm/gpu/drm_console_buffer.h"
6 6
7 #include <sys/mman.h> 7 #include <sys/mman.h>
8 #include <xf86drmMode.h> 8 #include <xf86drmMode.h>
9 9
10 #include "third_party/skia/include/core/SkCanvas.h"
11 #include "ui/ozone/platform/drm/common/scoped_drm_types.h" 10 #include "ui/ozone/platform/drm/common/scoped_drm_types.h"
12 #include "ui/ozone/platform/drm/gpu/drm_device.h" 11 #include "ui/ozone/platform/drm/gpu/drm_device.h"
13 12
14 namespace ui { 13 namespace ui {
15 14
16 DrmConsoleBuffer::DrmConsoleBuffer(const scoped_refptr<DrmDevice>& drm, 15 DrmConsoleBuffer::DrmConsoleBuffer(const scoped_refptr<DrmDevice>& drm,
17 uint32_t framebuffer) 16 uint32_t framebuffer)
18 : drm_(drm), framebuffer_(framebuffer) { 17 : drm_(drm), framebuffer_(framebuffer) {
19 } 18 }
20 19
(...skipping 24 matching lines...) Expand all
45 } 44 }
46 45
47 surface_ = SkSurface::MakeRasterDirect(info, mmap_base_, stride_); 46 surface_ = SkSurface::MakeRasterDirect(info, mmap_base_, stride_);
48 if (!surface_) 47 if (!surface_)
49 return false; 48 return false;
50 49
51 return true; 50 return true;
52 } 51 }
53 52
54 } // namespace ui 53 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_console_buffer.h ('k') | ui/ozone/platform/drm/gpu/drm_window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698