| 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_PUBLIC_NATIVE_PIXMAP_H_ | 5 #ifndef UI_OZONE_PUBLIC_NATIVE_PIXMAP_H_ |
| 6 #define UI_OZONE_PUBLIC_NATIVE_PIXMAP_H_ | 6 #define UI_OZONE_PUBLIC_NATIVE_PIXMAP_H_ |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 virtual bool AreDmaBufFdsValid() const = 0; | 29 virtual bool AreDmaBufFdsValid() const = 0; |
| 30 virtual size_t GetDmaBufFdCount() const = 0; | 30 virtual size_t GetDmaBufFdCount() const = 0; |
| 31 virtual int GetDmaBufFd(size_t plane) const = 0; | 31 virtual int GetDmaBufFd(size_t plane) const = 0; |
| 32 virtual int GetDmaBufPitch(size_t plane) const = 0; | 32 virtual int GetDmaBufPitch(size_t plane) const = 0; |
| 33 virtual int GetDmaBufOffset(size_t plane) const = 0; | 33 virtual int GetDmaBufOffset(size_t plane) const = 0; |
| 34 virtual uint64_t GetDmaBufModifier(size_t plane) const = 0; | 34 virtual uint64_t GetDmaBufModifier(size_t plane) const = 0; |
| 35 virtual gfx::BufferFormat GetBufferFormat() const = 0; | 35 virtual gfx::BufferFormat GetBufferFormat() const = 0; |
| 36 virtual gfx::Size GetBufferSize() const = 0; | 36 virtual gfx::Size GetBufferSize() const = 0; |
| 37 | 37 |
| 38 // Sets the overlay plane to switch to at the next page flip. | 38 // Sets the overlay plane to switch to at the next page flip. |
| 39 // |w| specifies the screen to display this overlay plane on. | 39 // |widget| specifies the screen to display this overlay plane on. |
| 40 // |plane_z_order| specifies the stacking order of the plane relative to the | 40 // |plane_z_order| specifies the stacking order of the plane relative to the |
| 41 // main framebuffer located at index 0. | 41 // main framebuffer located at index 0. |
| 42 // |plane_transform| specifies how the buffer is to be transformed during. | 42 // |plane_transform| specifies how the buffer is to be transformed during |
| 43 // composition. | 43 // composition. |
| 44 // |buffer| to be presented by the overlay. | |
| 45 // |display_bounds| specify where it is supposed to be on the screen. | 44 // |display_bounds| specify where it is supposed to be on the screen. |
| 46 // |crop_rect| specifies the region within the buffer to be placed | 45 // |crop_rect| specifies the region within the buffer to be placed |
| 47 // inside |display_bounds|. This is specified in texture coordinates, in the | 46 // inside |display_bounds|. This is specified in texture coordinates, in the |
| 48 // range of [0,1]. | 47 // range of [0,1]. |
| 49 virtual bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 48 virtual bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
| 50 int plane_z_order, | 49 int plane_z_order, |
| 51 gfx::OverlayTransform plane_transform, | 50 gfx::OverlayTransform plane_transform, |
| 52 const gfx::Rect& display_bounds, | 51 const gfx::Rect& display_bounds, |
| 53 const gfx::RectF& crop_rect) = 0; | 52 const gfx::RectF& crop_rect) = 0; |
| 54 | 53 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 72 | 71 |
| 73 private: | 72 private: |
| 74 friend class base::RefCountedThreadSafe<NativePixmap>; | 73 friend class base::RefCountedThreadSafe<NativePixmap>; |
| 75 | 74 |
| 76 DISALLOW_COPY_AND_ASSIGN(NativePixmap); | 75 DISALLOW_COPY_AND_ASSIGN(NativePixmap); |
| 77 }; | 76 }; |
| 78 | 77 |
| 79 } // namespace ui | 78 } // namespace ui |
| 80 | 79 |
| 81 #endif // UI_OZONE_PUBLIC_NATIVE_PIXMAP_H_ | 80 #endif // UI_OZONE_PUBLIC_NATIVE_PIXMAP_H_ |
| OLD | NEW |