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

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

Issue 2557783002: Improve metrics for display list canvas fallback reason (Closed)
Patch Set: Created 4 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 const IntPoint& destPoint); 138 const IntPoint& destPoint);
139 139
140 AffineTransform baseTransform() const { return AffineTransform(); } 140 AffineTransform baseTransform() const { return AffineTransform(); }
141 WebLayer* platformLayer() const; 141 WebLayer* platformLayer() const;
142 142
143 // Destroys the TEXTURE_2D binding for the active texture unit of the passed 143 // Destroys the TEXTURE_2D binding for the active texture unit of the passed
144 // context. Assumes the destination texture has already been allocated. 144 // context. Assumes the destination texture has already been allocated.
145 // FIXME: Current implementations of this method only work with textures that 145 // FIXME: Current implementations of this method only work with textures that
146 // are RGB or RGBA format, UNSIGNED_BYTE type and level 0, as specified in 146 // are RGB or RGBA format, UNSIGNED_BYTE type and level 0, as specified in
147 // Extensions3D::canUseCopyTextureCHROMIUM(). 147 // Extensions3D::canUseCopyTextureCHROMIUM().
148 bool copyToPlatformTexture(gpu::gles2::GLES2Interface*, 148 bool copyToPlatformTexture(SnapshotReason,
149 gpu::gles2::GLES2Interface*,
149 GLuint texture, 150 GLuint texture,
150 GLenum internalFormat, 151 GLenum internalFormat,
151 GLenum destType, 152 GLenum destType,
152 GLint level, 153 GLint level,
153 bool premultiplyAlpha, 154 bool premultiplyAlpha,
154 bool flipY, 155 bool flipY,
155 const IntPoint& destPoint, 156 const IntPoint& destPoint,
156 const IntRect& sourceSubRectangle); 157 const IntRect& sourceSubRectangle);
157 158
158 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, 159 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 int height() const { return m_size.height(); } 217 int height() const { return m_size.height(); }
217 int width() const { return m_size.width(); } 218 int width() const { return m_size.width(); }
218 219
219 const unsigned char* m_data; 220 const unsigned char* m_data;
220 const IntSize m_size; 221 const IntSize m_size;
221 }; 222 };
222 223
223 } // namespace blink 224 } // namespace blink
224 225
225 #endif // ImageBuffer_h 226 #endif // ImageBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698