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

Side by Side Diff: Source/platform/graphics/ImageBuffer.h

Issue 749653002: WebGL: clarify which Front or Back buffer is used by each API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address nits Created 6 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved.
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 // FIXME: current implementations of this method have the restriction that t hey only work 118 // FIXME: current implementations of this method have the restriction that t hey only work
119 // with textures that are RGB or RGBA format, UNSIGNED_BYTE type and level 0 , as specified in 119 // with textures that are RGB or RGBA format, UNSIGNED_BYTE type and level 0 , as specified in
120 // Extensions3D::canUseCopyTextureCHROMIUM(). 120 // Extensions3D::canUseCopyTextureCHROMIUM().
121 // Destroys the TEXTURE_2D binding for the active texture unit of the passed context 121 // Destroys the TEXTURE_2D binding for the active texture unit of the passed context
122 bool copyToPlatformTexture(WebGraphicsContext3D*, Platform3DObject, GLenum, GLenum, GLint, bool, bool); 122 bool copyToPlatformTexture(WebGraphicsContext3D*, Platform3DObject, GLenum, GLenum, GLint, bool, bool);
123 123
124 Platform3DObject getBackingTexture(); 124 Platform3DObject getBackingTexture();
125 void didModifyBackingTexture(); 125 void didModifyBackingTexture();
126 126
127 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, bool fromFrontBuf fer = false); 127 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, SourceDrawingBuff er);
128 128
129 void flush(); 129 void flush();
130 130
131 void notifySurfaceInvalid(); 131 void notifySurfaceInvalid();
132 132
133 PassRefPtr<SkImage> newImageSnapshot() const; 133 PassRefPtr<SkImage> newImageSnapshot() const;
134 134
135 private: 135 private:
136 ImageBuffer(PassOwnPtr<ImageBufferSurface>); 136 ImageBuffer(PassOwnPtr<ImageBufferSurface>);
137 137
(...skipping 19 matching lines...) Expand all
157 157
158 IntSize m_size; 158 IntSize m_size;
159 RefPtr<Uint8ClampedArray> m_data; 159 RefPtr<Uint8ClampedArray> m_data;
160 }; 160 };
161 161
162 String PLATFORM_EXPORT ImageDataToDataURL(const ImageDataBuffer&, const String& mimeType, const double* quality); 162 String PLATFORM_EXPORT ImageDataToDataURL(const ImageDataBuffer&, const String& mimeType, const double* quality);
163 163
164 } // namespace blink 164 } // namespace blink
165 165
166 #endif // ImageBuffer_h 166 #endif // ImageBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698