| 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 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_BUFFER_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_BUFFER_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_BUFFER_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_BUFFER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // ScanoutBuffer: | 38 // ScanoutBuffer: |
| 39 uint32_t GetFramebufferId() const override; | 39 uint32_t GetFramebufferId() const override; |
| 40 uint32_t GetFramebufferPixelFormat() const override; | 40 uint32_t GetFramebufferPixelFormat() const override; |
| 41 uint32_t GetOpaqueFramebufferId() const override; | 41 uint32_t GetOpaqueFramebufferId() const override; |
| 42 uint32_t GetOpaqueFramebufferPixelFormat() const override; | 42 uint32_t GetOpaqueFramebufferPixelFormat() const override; |
| 43 uint32_t GetHandle() const override; | 43 uint32_t GetHandle() const override; |
| 44 gfx::Size GetSize() const override; | 44 gfx::Size GetSize() const override; |
| 45 const DrmDevice* GetDrmDevice() const override; | 45 const DrmDevice* GetDrmDevice() const override; |
| 46 bool RequiresGlFinish() const override; | 46 bool RequiresGlFinish() const override; |
| 47 | 47 |
| 48 uint64_t GetFormatModifier() const override { return 0; } |
| 49 |
| 48 protected: | 50 protected: |
| 49 ~DrmBuffer() override; | 51 ~DrmBuffer() override; |
| 50 | 52 |
| 51 scoped_refptr<DrmDevice> drm_; | 53 scoped_refptr<DrmDevice> drm_; |
| 52 | 54 |
| 53 // Length of a row of pixels. | 55 // Length of a row of pixels. |
| 54 uint32_t stride_ = 0; | 56 uint32_t stride_ = 0; |
| 55 | 57 |
| 56 // Buffer handle used by the DRM allocator. | 58 // Buffer handle used by the DRM allocator. |
| 57 uint32_t handle_ = 0; | 59 uint32_t handle_ = 0; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 71 | 73 |
| 72 // Wrapper around the native pixel memory. | 74 // Wrapper around the native pixel memory. |
| 73 sk_sp<SkSurface> surface_; | 75 sk_sp<SkSurface> surface_; |
| 74 | 76 |
| 75 DISALLOW_COPY_AND_ASSIGN(DrmBuffer); | 77 DISALLOW_COPY_AND_ASSIGN(DrmBuffer); |
| 76 }; | 78 }; |
| 77 | 79 |
| 78 } // namespace ui | 80 } // namespace ui |
| 79 | 81 |
| 80 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_BUFFER_H_ | 82 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_BUFFER_H_ |
| OLD | NEW |