| 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_GBM_BUFFER_BASE_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_BASE_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_BASE_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_BASE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 uint32_t GetFramebufferId() const override; | 29 uint32_t GetFramebufferId() const override; |
| 30 uint32_t GetHandle() const override; | 30 uint32_t GetHandle() const override; |
| 31 gfx::Size GetSize() const override; | 31 gfx::Size GetSize() const override; |
| 32 uint32_t GetFramebufferPixelFormat() const override; | 32 uint32_t GetFramebufferPixelFormat() const override; |
| 33 const DrmDevice* GetDrmDevice() const override; | 33 const DrmDevice* GetDrmDevice() const override; |
| 34 bool RequiresGlFinish() const override; | 34 bool RequiresGlFinish() const override; |
| 35 | 35 |
| 36 protected: | 36 protected: |
| 37 GbmBufferBase(const scoped_refptr<GbmDevice>& drm, | 37 GbmBufferBase(const scoped_refptr<GbmDevice>& drm, |
| 38 gbm_bo* bo, | 38 gbm_bo* bo, |
| 39 gfx::BufferFormat format, | 39 uint32_t format, |
| 40 gfx::BufferUsage usage); | 40 uint32_t flags); |
| 41 ~GbmBufferBase() override; | 41 ~GbmBufferBase() override; |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 scoped_refptr<GbmDevice> drm_; | 44 scoped_refptr<GbmDevice> drm_; |
| 45 gbm_bo* bo_; | 45 gbm_bo* bo_; |
| 46 uint32_t framebuffer_ = 0; | 46 uint32_t framebuffer_ = 0; |
| 47 uint32_t framebuffer_pixel_format_ = 0; | 47 uint32_t framebuffer_pixel_format_ = 0; |
| 48 | 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(GbmBufferBase); | 49 DISALLOW_COPY_AND_ASSIGN(GbmBufferBase); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace ui | 52 } // namespace ui |
| 53 | 53 |
| 54 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_BASE_H_ | 54 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_BASE_H_ |
| OLD | NEW |