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

Side by Side Diff: ui/ozone/platform/drm/gpu/mock_dumb_buffer_generator.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/mock_dumb_buffer_generator.h" 5 #include "ui/ozone/platform/drm/gpu/mock_dumb_buffer_generator.h"
6 6
7 #include "third_party/skia/include/core/SkImageInfo.h"
7 #include "ui/ozone/platform/drm/gpu/drm_buffer.h" 8 #include "ui/ozone/platform/drm/gpu/drm_buffer.h"
8 9
9 namespace ui { 10 namespace ui {
10 11
11 MockDumbBufferGenerator::MockDumbBufferGenerator() {} 12 MockDumbBufferGenerator::MockDumbBufferGenerator() {}
12 13
13 MockDumbBufferGenerator::~MockDumbBufferGenerator() {} 14 MockDumbBufferGenerator::~MockDumbBufferGenerator() {}
14 15
15 scoped_refptr<ScanoutBuffer> MockDumbBufferGenerator::Create( 16 scoped_refptr<ScanoutBuffer> MockDumbBufferGenerator::Create(
16 const scoped_refptr<DrmDevice>& drm, 17 const scoped_refptr<DrmDevice>& drm,
17 gfx::BufferFormat format, 18 gfx::BufferFormat format,
18 const gfx::Size& size) { 19 const gfx::Size& size) {
19 scoped_refptr<DrmBuffer> buffer(new DrmBuffer(drm)); 20 scoped_refptr<DrmBuffer> buffer(new DrmBuffer(drm));
20 SkImageInfo info = SkImageInfo::MakeN32Premul(size.width(), size.height()); 21 SkImageInfo info = SkImageInfo::MakeN32Premul(size.width(), size.height());
21 if (!buffer->Initialize(info, true /* should_register_framebuffer */)) 22 if (!buffer->Initialize(info, true /* should_register_framebuffer */))
22 return NULL; 23 return NULL;
23 24
24 return buffer; 25 return buffer;
25 } 26 }
26 27
27 } // namespace ui 28 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/mock_drm_device.h ('k') | ui/ozone/platform/drm/gpu/screen_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698