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

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

Issue 2841573002: Revert of Fix blits from multisampled renderbuffers to alpha:false WebGL back buffer. (Closed)
Patch Set: Created 3 years, 8 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.cc ('k') | ui/gl/gl_image_io_surface.mm » ('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 27 matching lines...) Expand all
38 // initialization will ensure that the CVPixelBuffer be retained for the 38 // initialization will ensure that the CVPixelBuffer be retained for the
39 // lifetime of the GLImage. 39 // lifetime of the GLImage.
40 bool InitializeWithCVPixelBuffer(CVPixelBufferRef cv_pixel_buffer, 40 bool InitializeWithCVPixelBuffer(CVPixelBufferRef cv_pixel_buffer,
41 gfx::GenericSharedMemoryId io_surface_id, 41 gfx::GenericSharedMemoryId io_surface_id,
42 gfx::BufferFormat format); 42 gfx::BufferFormat format);
43 43
44 // Overridden from GLImage: 44 // Overridden from GLImage:
45 gfx::Size GetSize() override; 45 gfx::Size GetSize() override;
46 unsigned GetInternalFormat() override; 46 unsigned GetInternalFormat() override;
47 bool BindTexImage(unsigned target) override; 47 bool BindTexImage(unsigned target) override;
48 bool BindTexImageWithInternalformat(unsigned target,
49 unsigned internalformat) override;
50 void ReleaseTexImage(unsigned target) override {} 48 void ReleaseTexImage(unsigned target) override {}
51 bool CopyTexImage(unsigned target) override; 49 bool CopyTexImage(unsigned target) override;
52 bool CopyTexSubImage(unsigned target, 50 bool CopyTexSubImage(unsigned target,
53 const gfx::Point& offset, 51 const gfx::Point& offset,
54 const gfx::Rect& rect) override; 52 const gfx::Rect& rect) override;
55 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 53 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
56 int z_order, 54 int z_order,
57 gfx::OverlayTransform transform, 55 gfx::OverlayTransform transform,
58 const gfx::Rect& bounds_rect, 56 const gfx::Rect& bounds_rect,
59 const gfx::RectF& crop_rect) override; 57 const gfx::RectF& crop_rect) override;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer_; 95 base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer_;
98 gfx::GenericSharedMemoryId io_surface_id_; 96 gfx::GenericSharedMemoryId io_surface_id_;
99 base::ThreadChecker thread_checker_; 97 base::ThreadChecker thread_checker_;
100 98
101 DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface); 99 DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface);
102 }; 100 };
103 101
104 } // namespace gl 102 } // namespace gl
105 103
106 #endif // UI_GL_GL_IMAGE_IO_SURFACE_H_ 104 #endif // UI_GL_GL_IMAGE_IO_SURFACE_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_image.cc ('k') | ui/gl/gl_image_io_surface.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698