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/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 Loading... |
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 |
OLD | NEW |