Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: ui/gl/gl_image_io_surface.h

Issue 2109803003: Add support for EXT_image_flush_external extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add support for EXT_image_flush_external extension Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/gl/gl_image_glx.h ('k') | ui/gl/gl_image_memory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 54 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
55 int z_order, 55 int z_order,
56 gfx::OverlayTransform transform, 56 gfx::OverlayTransform transform,
57 const gfx::Rect& bounds_rect, 57 const gfx::Rect& bounds_rect,
58 const gfx::RectF& crop_rect) override; 58 const gfx::RectF& crop_rect) override;
59 void Flush() override {}
59 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, 60 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
60 uint64_t process_tracing_id, 61 uint64_t process_tracing_id,
61 const std::string& dump_name) override; 62 const std::string& dump_name) override;
62 bool EmulatingRGB() const override; 63 bool EmulatingRGB() const override;
63 64
64 gfx::GenericSharedMemoryId io_surface_id() const { return io_surface_id_; } 65 gfx::GenericSharedMemoryId io_surface_id() const { return io_surface_id_; }
65 base::ScopedCFTypeRef<IOSurfaceRef> io_surface(); 66 base::ScopedCFTypeRef<IOSurfaceRef> io_surface();
66 base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer(); 67 base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer();
67 68
68 // Whether checking IOSurfaceIsInUse() will actually provide a meaningful 69 // Whether checking IOSurfaceIsInUse() will actually provide a meaningful
(...skipping 26 matching lines...) Expand all
95 base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer_; 96 base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer_;
96 gfx::GenericSharedMemoryId io_surface_id_; 97 gfx::GenericSharedMemoryId io_surface_id_;
97 base::ThreadChecker thread_checker_; 98 base::ThreadChecker thread_checker_;
98 99
99 DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface); 100 DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface);
100 }; 101 };
101 102
102 } // namespace gl 103 } // namespace gl
103 104
104 #endif // UI_GL_GL_IMAGE_IO_SURFACE_H_ 105 #endif // UI_GL_GL_IMAGE_IO_SURFACE_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_image_glx.h ('k') | ui/gl/gl_image_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698