| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_GFX_OZONE_DRI_DRI_SKBITMAP_H_ | 5 #ifndef UI_GFX_OZONE_DRI_DRI_SKBITMAP_H_ |
| 6 #define UI_GFX_OZONE_DRI_DRI_SKBITMAP_H_ | 6 #define UI_GFX_OZONE_DRI_DRI_SKBITMAP_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "third_party/skia/include/core/SkBitmap.h" | 9 #include "third_party/skia/include/core/SkBitmap.h" |
| 10 #include "ui/gfx/gfx_export.h" | 10 #include "ui/gfx/gfx_export.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 uint32_t get_framebuffer() const { return framebuffer_; }; | 27 uint32_t get_framebuffer() const { return framebuffer_; }; |
| 28 | 28 |
| 29 int get_fd() const { return fd_; }; | 29 int get_fd() const { return fd_; }; |
| 30 | 30 |
| 31 // Return the color depth of a pixel in this buffer. | 31 // Return the color depth of a pixel in this buffer. |
| 32 uint8_t GetColorDepth() const; | 32 uint8_t GetColorDepth() const; |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 friend class DriAllocator; | 35 friend class DriAllocator; |
| 36 friend class HardwareDisplayController; | 36 friend class DriSurface; |
| 37 | 37 |
| 38 void set_handle(uint32_t handle) { handle_ = handle; }; | 38 void set_handle(uint32_t handle) { handle_ = handle; }; |
| 39 void set_framebuffer(uint32_t framebuffer) { framebuffer_ = framebuffer; }; | 39 void set_framebuffer(uint32_t framebuffer) { framebuffer_ = framebuffer; }; |
| 40 | 40 |
| 41 // File descriptor used by the DRI allocator to request buffers from the DRI | 41 // File descriptor used by the DRI allocator to request buffers from the DRI |
| 42 // stack. | 42 // stack. |
| 43 int fd_; | 43 int fd_; |
| 44 | 44 |
| 45 // Buffer handle used by the DRI allocator. | 45 // Buffer handle used by the DRI allocator. |
| 46 uint32_t handle_; | 46 uint32_t handle_; |
| 47 | 47 |
| 48 // Buffer ID used by the DRI modesettings API. This is set when the buffer is | 48 // Buffer ID used by the DRI modesettings API. This is set when the buffer is |
| 49 // registered with the CRTC. | 49 // registered with the CRTC. |
| 50 uint32_t framebuffer_; | 50 uint32_t framebuffer_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(DriSkBitmap); | 52 DISALLOW_COPY_AND_ASSIGN(DriSkBitmap); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace gfx | 55 } // namespace gfx |
| 56 | 56 |
| 57 #endif // UI_GFX_OZONE_DRI_DRI_SKBITMAP_H_ | 57 #endif // UI_GFX_OZONE_DRI_DRI_SKBITMAP_H_ |
| OLD | NEW |