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

Side by Side Diff: Source/modules/webgl/WebGL2RenderingContextBase.h

Issue 1300573002: WebGL 2: add readPixels API to read pixels into pixel pack buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebGL2RenderingContextBase_h 5 #ifndef WebGL2RenderingContextBase_h
6 #define WebGL2RenderingContextBase_h 6 #define WebGL2RenderingContextBase_h
7 7
8 #include "modules/webgl/WebGLExtension.h" 8 #include "modules/webgl/WebGLExtension.h"
9 #include "modules/webgl/WebGLRenderingContextBase.h" 9 #include "modules/webgl/WebGLRenderingContextBase.h"
10 10
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 void removeBoundBuffer(WebGLBuffer*) override; 209 void removeBoundBuffer(WebGLBuffer*) override;
210 210
211 PersistentWillBeMember<WebGLFramebuffer> m_readFramebufferBinding; 211 PersistentWillBeMember<WebGLFramebuffer> m_readFramebufferBinding;
212 PersistentWillBeMember<WebGLTransformFeedback> m_transformFeedbackBinding; 212 PersistentWillBeMember<WebGLTransformFeedback> m_transformFeedbackBinding;
213 GLint m_max3DTextureSize; 213 GLint m_max3DTextureSize;
214 GLint m_max3DTextureLevel; 214 GLint m_max3DTextureLevel;
215 215
216 PersistentWillBeMember<WebGLBuffer> m_boundCopyReadBuffer; 216 PersistentWillBeMember<WebGLBuffer> m_boundCopyReadBuffer;
217 PersistentWillBeMember<WebGLBuffer> m_boundCopyWriteBuffer; 217 PersistentWillBeMember<WebGLBuffer> m_boundCopyWriteBuffer;
218 PersistentWillBeMember<WebGLBuffer> m_boundPixelPackBuffer;
219 PersistentWillBeMember<WebGLBuffer> m_boundPixelUnpackBuffer; 218 PersistentWillBeMember<WebGLBuffer> m_boundPixelUnpackBuffer;
220 PersistentWillBeMember<WebGLBuffer> m_boundTransformFeedbackBuffer; 219 PersistentWillBeMember<WebGLBuffer> m_boundTransformFeedbackBuffer;
221 PersistentWillBeMember<WebGLBuffer> m_boundUniformBuffer; 220 PersistentWillBeMember<WebGLBuffer> m_boundUniformBuffer;
222 221
223 PersistentWillBeMember<WebGLQuery> m_currentBooleanOcclusionQuery; 222 PersistentWillBeMember<WebGLQuery> m_currentBooleanOcclusionQuery;
224 PersistentWillBeMember<WebGLQuery> m_currentTransformFeedbackPrimitivesWritt enQuery; 223 PersistentWillBeMember<WebGLQuery> m_currentTransformFeedbackPrimitivesWritt enQuery;
225 PersistentHeapVectorWillBeHeapVector<Member<WebGLSampler>> m_samplerUnits; 224 PersistentHeapVectorWillBeHeapVector<Member<WebGLSampler>> m_samplerUnits;
226 }; 225 };
227 226
228 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, 227 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context,
229 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, 228 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2,
230 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2) ; 229 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2) ;
231 230
232 } // namespace blink 231 } // namespace blink
233 232
234 #endif 233 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/modules/webgl/WebGL2RenderingContextBase.cpp » ('j') | Source/modules/webgl/WebGLRenderingContextBase.idl » ('J')

Powered by Google App Engine
This is Rietveld 408576698