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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_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
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_buffer.h ('k') | ui/ozone/platform/drm/gpu/drm_console_buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_buffer.h" 5 #include "ui/ozone/platform/drm/gpu/drm_buffer.h"
6 6
7 #include <drm_fourcc.h> 7 #include <drm_fourcc.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "third_party/skia/include/core/SkSurface.h"
10 #include "ui/ozone/platform/drm/gpu/drm_device.h" 11 #include "ui/ozone/platform/drm/gpu/drm_device.h"
11 12
12 namespace ui { 13 namespace ui {
13 14
14 namespace { 15 namespace {
15 16
16 uint32_t GetFourCCCodeForSkColorType(SkColorType type) { 17 uint32_t GetFourCCCodeForSkColorType(SkColorType type) {
17 switch (type) { 18 switch (type) {
18 case kUnknown_SkColorType: 19 case kUnknown_SkColorType:
19 case kAlpha_8_SkColorType: 20 case kAlpha_8_SkColorType:
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 104
104 gfx::Size DrmBuffer::GetSize() const { 105 gfx::Size DrmBuffer::GetSize() const {
105 return gfx::Size(surface_->width(), surface_->height()); 106 return gfx::Size(surface_->width(), surface_->height());
106 } 107 }
107 108
108 bool DrmBuffer::RequiresGlFinish() const { 109 bool DrmBuffer::RequiresGlFinish() const {
109 return false; 110 return false;
110 } 111 }
111 112
112 } // namespace ui 113 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_buffer.h ('k') | ui/ozone/platform/drm/gpu/drm_console_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698