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

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

Issue 2776083002: enable fallback path (Closed)
Patch Set: use stream read 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
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 const unsigned char* source, 132 const unsigned char* source,
133 const IntSize& sourceSize, 133 const IntSize& sourceSize,
134 const IntRect& sourceRect, 134 const IntRect& sourceRect,
135 const IntPoint& destPoint); 135 const IntPoint& destPoint);
136 136
137 AffineTransform baseTransform() const { return AffineTransform(); } 137 AffineTransform baseTransform() const { return AffineTransform(); }
138 WebLayer* platformLayer() const; 138 WebLayer* platformLayer() const;
139 139
140 // Destroys the TEXTURE_2D binding for the active texture unit of the passed 140 // Destroys the TEXTURE_2D binding for the active texture unit of the passed
141 // context. Assumes the destination texture has already been allocated. 141 // context. Assumes the destination texture has already been allocated.
142 // FIXME: Current implementations of this method only work with textures that
143 // are RGB or RGBA format, UNSIGNED_BYTE type and level 0, as specified in
144 // Extensions3D::canUseCopyTextureCHROMIUM().
145 bool copyToPlatformTexture(SnapshotReason, 142 bool copyToPlatformTexture(SnapshotReason,
146 gpu::gles2::GLES2Interface*, 143 gpu::gles2::GLES2Interface*,
144 GLenum target,
147 GLuint texture, 145 GLuint texture,
148 GLenum internalFormat,
149 GLenum destType,
150 GLint level,
151 bool premultiplyAlpha, 146 bool premultiplyAlpha,
152 bool flipY, 147 bool flipY,
153 const IntPoint& destPoint, 148 const IntPoint& destPoint,
154 const IntRect& sourceSubRectangle); 149 const IntRect& sourceSubRectangle);
155 150
156 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, 151 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*,
157 SourceDrawingBuffer); 152 SourceDrawingBuffer);
158 153
159 void flush(FlushReason); // Process deferred draw commands immediately. 154 void flush(FlushReason); // Process deferred draw commands immediately.
160 void flushGpu(FlushReason); // Like flush(), but flushes all the way down to 155 void flushGpu(FlushReason); // Like flush(), but flushes all the way down to
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 int height() const { return m_size.height(); } 210 int height() const { return m_size.height(); }
216 int width() const { return m_size.width(); } 211 int width() const { return m_size.width(); }
217 212
218 const unsigned char* m_data; 213 const unsigned char* m_data;
219 const IntSize m_size; 214 const IntSize m_size;
220 }; 215 };
221 216
222 } // namespace blink 217 } // namespace blink
223 218
224 #endif // ImageBuffer_h 219 #endif // ImageBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698