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 24 matching lines...) Expand all Loading... |
35 unsigned GetInternalFormat() override; | 35 unsigned GetInternalFormat() override; |
36 bool BindTexImage(unsigned target) override; | 36 bool BindTexImage(unsigned target) override; |
37 void ReleaseTexImage(unsigned target) override {} | 37 void ReleaseTexImage(unsigned target) override {} |
38 bool CopyTexImage(unsigned target) override; | 38 bool CopyTexImage(unsigned target) override; |
39 bool CopyTexSubImage(unsigned target, | 39 bool CopyTexSubImage(unsigned target, |
40 const gfx::Point& offset, | 40 const gfx::Point& offset, |
41 const gfx::Rect& rect) override; | 41 const gfx::Rect& rect) override; |
42 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 42 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
43 int z_order, | 43 int z_order, |
44 gfx::OverlayTransform transform, | 44 gfx::OverlayTransform transform, |
| 45 gfx::BufferFormat storage_format, |
45 const gfx::Rect& bounds_rect, | 46 const gfx::Rect& bounds_rect, |
46 const gfx::RectF& crop_rect) override; | 47 const gfx::RectF& crop_rect, |
| 48 bool handle_scaling) override; |
47 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, | 49 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, |
48 uint64_t process_tracing_id, | 50 uint64_t process_tracing_id, |
49 const std::string& dump_name) override; | 51 const std::string& dump_name) override; |
50 | 52 |
51 gfx::GenericSharedMemoryId io_surface_id() const { return io_surface_id_; } | 53 gfx::GenericSharedMemoryId io_surface_id() const { return io_surface_id_; } |
52 base::ScopedCFTypeRef<IOSurfaceRef> io_surface(); | 54 base::ScopedCFTypeRef<IOSurfaceRef> io_surface(); |
53 | 55 |
54 static void SetLayerForWidget(gfx::AcceleratedWidget widget, CALayer* layer); | 56 static void SetLayerForWidget(gfx::AcceleratedWidget widget, CALayer* layer); |
55 | 57 |
56 static unsigned GetInternalFormatForTesting(gfx::BufferFormat format); | 58 static unsigned GetInternalFormatForTesting(gfx::BufferFormat format); |
(...skipping 17 matching lines...) Expand all Loading... |
74 int size_location_ = -1; | 76 int size_location_ = -1; |
75 unsigned vertex_buffer_ = 0; | 77 unsigned vertex_buffer_ = 0; |
76 unsigned yuv_textures_[2] = {}; | 78 unsigned yuv_textures_[2] = {}; |
77 | 79 |
78 DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface); | 80 DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface); |
79 }; | 81 }; |
80 | 82 |
81 } // namespace gl | 83 } // namespace gl |
82 | 84 |
83 #endif // UI_GL_GL_IMAGE_IO_SURFACE_H_ | 85 #endif // UI_GL_GL_IMAGE_IO_SURFACE_H_ |
OLD | NEW |