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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 bool defaultBufferRequiresAlphaChannelToBePreserved(); | 202 bool defaultBufferRequiresAlphaChannelToBePreserved(); |
203 | 203 |
204 WebLayer* platformLayer(); | 204 WebLayer* platformLayer(); |
205 | 205 |
206 gpu::gles2::GLES2Interface* contextGL(); | 206 gpu::gles2::GLES2Interface* contextGL(); |
207 WebGraphicsContext3DProvider* contextProvider(); | 207 WebGraphicsContext3DProvider* contextProvider(); |
208 | 208 |
209 // cc::TextureLayerClient implementation. | 209 // cc::TextureLayerClient implementation. |
210 bool PrepareTextureMailbox( | 210 bool PrepareTextureMailbox( |
211 cc::TextureMailbox* outMailbox, | 211 cc::TextureMailbox* outMailbox, |
212 std::unique_ptr<cc::SingleReleaseCallback>* outReleaseCallback, | 212 std::unique_ptr<cc::SingleReleaseCallback>* outReleaseCallback) override
; |
213 bool useSharedMemory) override; | |
214 | 213 |
215 // Returns a StaticBitmapImage backed by a texture containing the/ current c
ontents of | 214 // Returns a StaticBitmapImage backed by a texture containing the/ current c
ontents of |
216 // the front buffer. This is done without any pixel copies. The texture in t
he ImageBitmap | 215 // the front buffer. This is done without any pixel copies. The texture in t
he ImageBitmap |
217 // is from the active ContextProvider on the DrawingBuffer. | 216 // is from the active ContextProvider on the DrawingBuffer. |
218 PassRefPtr<StaticBitmapImage> transferToStaticBitmapImage(); | 217 PassRefPtr<StaticBitmapImage> transferToStaticBitmapImage(); |
219 | 218 |
220 // Destroys the TEXTURE_2D binding for the owned context | 219 // Destroys the TEXTURE_2D binding for the owned context |
221 bool copyToPlatformTexture(gpu::gles2::GLES2Interface*, GLuint texture, GLen
um internalFormat, | 220 bool copyToPlatformTexture(gpu::gles2::GLES2Interface*, GLuint texture, GLen
um internalFormat, |
222 GLenum destType, GLint level, bool premultiplyAlpha, bool flipY, SourceD
rawingBuffer); | 221 GLenum destType, GLint level, bool premultiplyAlpha, bool flipY, SourceD
rawingBuffer); |
223 | 222 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 // used to resize the Canvas. | 483 // used to resize the Canvas. |
485 SkBitmap m_resizingBitmap; | 484 SkBitmap m_resizingBitmap; |
486 | 485 |
487 // Used to flip a bitmap vertically. | 486 // Used to flip a bitmap vertically. |
488 Vector<uint8_t> m_scanline; | 487 Vector<uint8_t> m_scanline; |
489 }; | 488 }; |
490 | 489 |
491 } // namespace blink | 490 } // namespace blink |
492 | 491 |
493 #endif // DrawingBuffer_h | 492 #endif // DrawingBuffer_h |
OLD | NEW |