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_GL_GL_IMAGE_IO_SURFACE_H_ | 5 #ifndef UI_GL_GL_IMAGE_IO_SURFACE_H_ |
6 #define UI_GL_GL_IMAGE_IO_SURFACE_H_ | 6 #define UI_GL_GL_IMAGE_IO_SURFACE_H_ |
7 | 7 |
8 #include <IOSurface/IOSurface.h> | 8 #include <IOSurface/IOSurface.h> |
9 | 9 |
10 #include "base/mac/scoped_cftyperef.h" | 10 #include "base/mac/scoped_cftyperef.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 void WillUseTexImage() override {} | 32 void WillUseTexImage() override {} |
33 void DidUseTexImage() override {} | 33 void DidUseTexImage() override {} |
34 void WillModifyTexImage() override {} | 34 void WillModifyTexImage() override {} |
35 void DidModifyTexImage() override {} | 35 void DidModifyTexImage() override {} |
36 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 36 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
37 int z_order, | 37 int z_order, |
38 OverlayTransform transform, | 38 OverlayTransform transform, |
39 const Rect& bounds_rect, | 39 const Rect& bounds_rect, |
40 const RectF& crop_rect) override; | 40 const RectF& crop_rect) override; |
41 | 41 |
| 42 IOSurfaceRef io_surface() { return io_surface_.get(); } |
| 43 |
42 protected: | 44 protected: |
43 ~GLImageIOSurface() override; | 45 ~GLImageIOSurface() override; |
44 | 46 |
45 private: | 47 private: |
46 const gfx::Size size_; | 48 const gfx::Size size_; |
47 const unsigned internalformat_; | 49 const unsigned internalformat_; |
48 GpuMemoryBuffer::Format format_; | 50 GpuMemoryBuffer::Format format_; |
49 base::ScopedCFTypeRef<IOSurfaceRef> io_surface_; | 51 base::ScopedCFTypeRef<IOSurfaceRef> io_surface_; |
50 base::ThreadChecker thread_checker_; | 52 base::ThreadChecker thread_checker_; |
51 | 53 |
52 DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface); | 54 DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface); |
53 }; | 55 }; |
54 | 56 |
55 } // namespace gfx | 57 } // namespace gfx |
56 | 58 |
57 #endif // UI_GL_GL_IMAGE_IO_SURFACE_H_ | 59 #endif // UI_GL_GL_IMAGE_IO_SURFACE_H_ |
OLD | NEW |