OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 std::unique_ptr<cc::SingleReleaseCallback>* | 195 std::unique_ptr<cc::SingleReleaseCallback>* |
196 out_release_callback) override; | 196 out_release_callback) override; |
197 | 197 |
198 // Returns a StaticBitmapImage backed by a texture containing the current | 198 // Returns a StaticBitmapImage backed by a texture containing the current |
199 // contents of the front buffer. This is done without any pixel copies. The | 199 // contents of the front buffer. This is done without any pixel copies. The |
200 // texture in the ImageBitmap is from the active ContextProvider on the | 200 // texture in the ImageBitmap is from the active ContextProvider on the |
201 // DrawingBuffer. | 201 // DrawingBuffer. |
202 PassRefPtr<StaticBitmapImage> TransferToStaticBitmapImage(); | 202 PassRefPtr<StaticBitmapImage> TransferToStaticBitmapImage(); |
203 | 203 |
204 bool CopyToPlatformTexture(gpu::gles2::GLES2Interface*, | 204 bool CopyToPlatformTexture(gpu::gles2::GLES2Interface*, |
| 205 GLenum target, |
205 GLuint texture, | 206 GLuint texture, |
206 GLenum internal_format, | |
207 GLenum dest_type, | |
208 GLint level, | |
209 bool premultiply_alpha, | 207 bool premultiply_alpha, |
210 bool flip_y, | 208 bool flip_y, |
211 const IntPoint& dest_texture_offset, | 209 const IntPoint& dest_texture_offset, |
212 const IntRect& source_sub_rectangle, | 210 const IntRect& source_sub_rectangle, |
213 SourceDrawingBuffer); | 211 SourceDrawingBuffer); |
214 | 212 |
215 bool PaintRenderingResultsToImageData(int&, | 213 bool PaintRenderingResultsToImageData(int&, |
216 int&, | 214 int&, |
217 SourceDrawingBuffer, | 215 SourceDrawingBuffer, |
218 WTF::ArrayBufferContents&); | 216 WTF::ArrayBufferContents&); |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 // RuntimeEnabledFeatures::webGLImageChromiumEnabled() call with | 528 // RuntimeEnabledFeatures::webGLImageChromiumEnabled() call with |
531 // shouldUseChromiumImage() calls, and set m_chromiumImageUsage to | 529 // shouldUseChromiumImage() calls, and set m_chromiumImageUsage to |
532 // DisallowChromiumImage in the case of OffscreenCanvas. | 530 // DisallowChromiumImage in the case of OffscreenCanvas. |
533 ChromiumImageUsage chromium_image_usage_; | 531 ChromiumImageUsage chromium_image_usage_; |
534 bool ShouldUseChromiumImage(); | 532 bool ShouldUseChromiumImage(); |
535 }; | 533 }; |
536 | 534 |
537 } // namespace blink | 535 } // namespace blink |
538 | 536 |
539 #endif // DrawingBuffer_h | 537 #endif // DrawingBuffer_h |
OLD | NEW |