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

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

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scoping Y8 out. Created 4 years, 2 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 void putByteArray(Multiply, 134 void putByteArray(Multiply,
135 const unsigned char* source, 135 const unsigned char* source,
136 const IntSize& sourceSize, 136 const IntSize& sourceSize,
137 const IntRect& sourceRect, 137 const IntRect& sourceRect,
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 // FIXME: current implementations of this method have the restriction that the y only work 143 // This method have the restriction that it only works with some texture
144 // with textures that are RGB or RGBA format, UNSIGNED_BYTE type and level 0, as specified in 144 // formats as specified in Extensions3D::canUseCopyTextureCHROMIUM().
145 // Extensions3D::canUseCopyTextureCHROMIUM().
146 // Destroys the TEXTURE_2D binding for the active texture unit of the passed c ontext 145 // Destroys the TEXTURE_2D binding for the active texture unit of the passed c ontext
147 bool copyToPlatformTexture(gpu::gles2::GLES2Interface*, 146 bool copyToPlatformTexture(gpu::gles2::GLES2Interface*,
148 GLuint texture, 147 GLuint texture,
149 GLenum internalFormat, 148 GLenum internalFormat,
150 GLenum destType, 149 GLenum destType,
151 GLint level, 150 GLint level,
152 bool premultiplyAlpha, 151 bool premultiplyAlpha,
153 bool flipY); 152 bool flipY);
154 153
155 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, 154 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 int height() const { return m_size.height(); } 215 int height() const { return m_size.height(); }
217 int width() const { return m_size.width(); } 216 int width() const { return m_size.width(); }
218 217
219 const unsigned char* m_data; 218 const unsigned char* m_data;
220 const IntSize m_size; 219 const IntSize m_size;
221 }; 220 };
222 221
223 } // namespace blink 222 } // namespace blink
224 223
225 #endif // ImageBuffer_h 224 #endif // ImageBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698