| 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 <CoreVideo/CVPixelBuffer.h> | 8 #include <CoreVideo/CVPixelBuffer.h> |
| 9 #include <IOSurface/IOSurface.h> | 9 #include <IOSurface/IOSurface.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // Overridden from GLImage: | 44 // Overridden from GLImage: |
| 45 void Destroy(bool have_context) override; | 45 void Destroy(bool have_context) override; |
| 46 gfx::Size GetSize() override; | 46 gfx::Size GetSize() override; |
| 47 unsigned GetInternalFormat() override; | 47 unsigned GetInternalFormat() override; |
| 48 bool BindTexImage(unsigned target, GLFence* fence) override; | 48 bool BindTexImage(unsigned target, GLFence* fence) override; |
| 49 void ReleaseTexImage(unsigned target) override {} | 49 void ReleaseTexImage(unsigned target) override {} |
| 50 bool CopyTexImage(unsigned target) override; | 50 bool CopyTexImage(unsigned target) override; |
| 51 bool CopyTexSubImage(unsigned target, | 51 bool CopyTexSubImage(unsigned target, |
| 52 const gfx::Point& offset, | 52 const gfx::Point& offset, |
| 53 const gfx::Rect& rect) override; | 53 const gfx::Rect& rect) override; |
| 54 bool CopySubImageData(unsigned texture_id, |
| 55 const gfx::Point& offset, |
| 56 const gfx::Rect& rect, |
| 57 GLFence* in_fence, |
| 58 GLFence* out_fence) override; |
| 54 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 59 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
| 55 int z_order, | 60 int z_order, |
| 56 gfx::OverlayTransform transform, | 61 gfx::OverlayTransform transform, |
| 57 const gfx::Rect& bounds_rect, | 62 const gfx::Rect& bounds_rect, |
| 58 const gfx::RectF& crop_rect) override; | 63 const gfx::RectF& crop_rect) override; |
| 59 void Flush() override {} | 64 void Flush() override {} |
| 60 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, | 65 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, |
| 61 uint64_t process_tracing_id, | 66 uint64_t process_tracing_id, |
| 62 const std::string& dump_name) override; | 67 const std::string& dump_name) override; |
| 63 bool EmulatingRGB() const override; | 68 bool EmulatingRGB() const override; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer_; | 101 base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer_; |
| 97 gfx::GenericSharedMemoryId io_surface_id_; | 102 gfx::GenericSharedMemoryId io_surface_id_; |
| 98 base::ThreadChecker thread_checker_; | 103 base::ThreadChecker thread_checker_; |
| 99 | 104 |
| 100 DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface); | 105 DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface); |
| 101 }; | 106 }; |
| 102 | 107 |
| 103 } // namespace gl | 108 } // namespace gl |
| 104 | 109 |
| 105 #endif // UI_GL_GL_IMAGE_IO_SURFACE_H_ | 110 #endif // UI_GL_GL_IMAGE_IO_SURFACE_H_ |
| OLD | NEW |