| 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_DRI_GBM_BUFFER_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_GBM_BUFFER_H_ |
| 6 #define UI_OZONE_PLATFORM_DRI_GBM_BUFFER_H_ | 6 #define UI_OZONE_PLATFORM_DRI_GBM_BUFFER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 virtual ~GbmBuffer(); | 33 virtual ~GbmBuffer(); |
| 34 | 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(GbmBuffer); | 35 DISALLOW_COPY_AND_ASSIGN(GbmBuffer); |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 class GbmPixmap : public NativePixmap { | 38 class GbmPixmap : public NativePixmap { |
| 39 public: | 39 public: |
| 40 GbmPixmap(scoped_refptr<GbmBuffer> buffer); | 40 GbmPixmap(scoped_refptr<GbmBuffer> buffer); |
| 41 | 41 |
| 42 // NativePixmap: | 42 // NativePixmap: |
| 43 virtual void* GetEGLClientBuffer() OVERRIDE; | 43 virtual void* GetEGLClientBuffer() override; |
| 44 virtual int GetDmaBufFd() OVERRIDE; | 44 virtual int GetDmaBufFd() override; |
| 45 | 45 |
| 46 scoped_refptr<GbmBuffer> buffer() { return buffer_; } | 46 scoped_refptr<GbmBuffer> buffer() { return buffer_; } |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 virtual ~GbmPixmap(); | 49 virtual ~GbmPixmap(); |
| 50 | 50 |
| 51 scoped_refptr<GbmBuffer> buffer_; | 51 scoped_refptr<GbmBuffer> buffer_; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(GbmPixmap); | 53 DISALLOW_COPY_AND_ASSIGN(GbmPixmap); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace ui | 56 } // namespace ui |
| 57 | 57 |
| 58 #endif // UI_OZONE_PLATFORM_DRI_GBM_BUFFER_H_ | 58 #endif // UI_OZONE_PLATFORM_DRI_GBM_BUFFER_H_ |
| OLD | NEW |