|
Lines 27-38
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec1
|
| 27 |
#include "config.h" |
27 |
#include "config.h" |
| 28 |
|
28 |
|
| 29 |
#if ENABLE(WEBGL) && USE(ANGLE) |
29 |
#if ENABLE(WEBGL) && USE(ANGLE) |
| 30 |
#include "GraphicsContextGL.h" |
30 |
#include "GraphicsContextGLANGLE.h" |
| 31 |
|
31 |
|
| 32 |
#include "ANGLEHeaders.h" |
32 |
#include "ANGLEHeaders.h" |
| 33 |
#include "ANGLEUtilities.h" |
33 |
#include "ANGLEUtilities.h" |
| 34 |
#include "ExtensionsGLANGLE.h" |
34 |
#include "ExtensionsGLANGLE.h" |
| 35 |
#include "GraphicsContextGLOpenGL.h" |
35 |
#include "GraphicsContextGLOpenGLManager.h" |
| 36 |
#include "ImageBuffer.h" |
36 |
#include "ImageBuffer.h" |
| 37 |
#include "IntRect.h" |
37 |
#include "IntRect.h" |
| 38 |
#include "IntSize.h" |
38 |
#include "IntSize.h" |
|
Lines 40-58
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec2
|
| 40 |
#include "NotImplemented.h" |
40 |
#include "NotImplemented.h" |
| 41 |
#include "PixelBuffer.h" |
41 |
#include "PixelBuffer.h" |
| 42 |
#include "TemporaryANGLESetting.h" |
42 |
#include "TemporaryANGLESetting.h" |
| 43 |
#include <JavaScriptCore/RegularExpression.h> |
|
|
| 44 |
#include <JavaScriptCore/Uint8ClampedArray.h> |
| 45 |
#include <algorithm> |
43 |
#include <algorithm> |
| 46 |
#include <cstring> |
44 |
#include <cstring> |
| 47 |
#include <wtf/HexNumber.h> |
|
|
| 48 |
#include <wtf/Seconds.h> |
45 |
#include <wtf/Seconds.h> |
| 49 |
#include <wtf/ThreadSpecific.h> |
|
|
| 50 |
#include <wtf/text/CString.h> |
46 |
#include <wtf/text/CString.h> |
| 51 |
#include <wtf/text/StringBuilder.h> |
47 |
#include <wtf/text/StringBuilder.h> |
| 52 |
|
48 |
|
| 53 |
|
|
|
| 54 |
#if ENABLE(VIDEO) && USE(AVFOUNDATION) |
49 |
#if ENABLE(VIDEO) && USE(AVFOUNDATION) |
| 55 |
#include "GraphicsContextGLCVANGLE.h" |
50 |
#include "GraphicsContextGLCVCocoa.h" |
| 56 |
#endif |
51 |
#endif |
| 57 |
|
52 |
|
| 58 |
// This one definition short-circuits the need for gl2ext.h, which |
53 |
// This one definition short-circuits the need for gl2ext.h, which |
|
Lines 76-83
static void wipeAlphaChannelFromPixels(int width, int height, unsigned char* pix
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec3
|
| 76 |
} |
71 |
} |
| 77 |
#endif |
72 |
#endif |
| 78 |
|
73 |
|
| 79 |
|
74 |
GCGLenum GraphicsContextGLANGLE::drawingBufferTextureTarget() |
| 80 |
GCGLenum GraphicsContextGLOpenGL::drawingBufferTextureTarget() |
|
|
| 81 |
{ |
75 |
{ |
| 82 |
if (m_drawingBufferTextureTarget == -1) |
76 |
if (m_drawingBufferTextureTarget == -1) |
| 83 |
EGL_GetConfigAttrib(platformDisplay(), platformConfig(), EGL_BIND_TO_TEXTURE_TARGET_ANGLE, &m_drawingBufferTextureTarget); |
77 |
EGL_GetConfigAttrib(platformDisplay(), platformConfig(), EGL_BIND_TO_TEXTURE_TARGET_ANGLE, &m_drawingBufferTextureTarget); |
|
Lines 93-99
GCGLenum GraphicsContextGLOpenGL::drawingBufferTextureTarget()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec4
|
| 93 |
return 0; |
87 |
return 0; |
| 94 |
} |
88 |
} |
| 95 |
|
89 |
|
| 96 |
GCGLenum GraphicsContextGLOpenGL::drawingBufferTextureTargetQueryForDrawingTarget(GCGLenum drawingTarget) |
90 |
GCGLenum GraphicsContextGLANGLE::drawingBufferTextureTargetQueryForDrawingTarget(GCGLenum drawingTarget) |
| 97 |
{ |
91 |
{ |
| 98 |
switch (drawingTarget) { |
92 |
switch (drawingTarget) { |
| 99 |
case TEXTURE_2D: |
93 |
case TEXTURE_2D: |
|
Lines 105-111
GCGLenum GraphicsContextGLOpenGL::drawingBufferTextureTargetQueryForDrawingTarge
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec5
|
| 105 |
return -1; |
99 |
return -1; |
| 106 |
} |
100 |
} |
| 107 |
|
101 |
|
| 108 |
GCGLint GraphicsContextGLOpenGL::EGLDrawingBufferTextureTargetForDrawingTarget(GCGLenum drawingTarget) |
102 |
GCGLint GraphicsContextGLANGLE::EGLDrawingBufferTextureTargetForDrawingTarget(GCGLenum drawingTarget) |
| 109 |
{ |
103 |
{ |
| 110 |
switch (drawingTarget) { |
104 |
switch (drawingTarget) { |
| 111 |
case TEXTURE_2D: |
105 |
case TEXTURE_2D: |
|
Lines 117-123
GCGLint GraphicsContextGLOpenGL::EGLDrawingBufferTextureTargetForDrawingTarget(G
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec6
|
| 117 |
return 0; |
111 |
return 0; |
| 118 |
} |
112 |
} |
| 119 |
|
113 |
|
| 120 |
bool GraphicsContextGLOpenGL::releaseThreadResources(ReleaseThreadResourceBehavior releaseBehavior) |
114 |
bool GraphicsContextGLANGLE::releaseThreadResources(ReleaseThreadResourceBehavior releaseBehavior) |
| 121 |
{ |
115 |
{ |
| 122 |
platformReleaseThreadResources(); |
116 |
platformReleaseThreadResources(); |
| 123 |
|
117 |
|
|
Lines 161-167
bool GraphicsContextGLOpenGL::releaseThreadResources(ReleaseThreadResourceBehavi
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec7
|
| 161 |
return EGL_ReleaseThread(); |
155 |
return EGL_ReleaseThread(); |
| 162 |
} |
156 |
} |
| 163 |
|
157 |
|
| 164 |
std::optional<PixelBuffer> GraphicsContextGLOpenGL::readPixelsForPaintResults() |
158 |
std::optional<PixelBuffer> GraphicsContextGLANGLE::readPixelsForPaintResults() |
| 165 |
{ |
159 |
{ |
| 166 |
PixelBufferFormat format { AlphaPremultiplication::Unpremultiplied, PixelFormat::RGBA8, DestinationColorSpace::SRGB() }; |
160 |
PixelBufferFormat format { AlphaPremultiplication::Unpremultiplied, PixelFormat::RGBA8, DestinationColorSpace::SRGB() }; |
| 167 |
auto pixelBuffer = PixelBuffer::tryCreate(format, getInternalFramebufferSize()); |
161 |
auto pixelBuffer = PixelBuffer::tryCreate(format, getInternalFramebufferSize()); |
|
Lines 187-200
std::optional<PixelBuffer> GraphicsContextGLOpenGL::readPixelsForPaintResults()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec8
|
| 187 |
return pixelBuffer; |
181 |
return pixelBuffer; |
| 188 |
} |
182 |
} |
| 189 |
|
183 |
|
| 190 |
void GraphicsContextGLOpenGL::validateAttributes() |
184 |
void GraphicsContextGLANGLE::validateAttributes() |
| 191 |
{ |
185 |
{ |
| 192 |
m_internalColorFormat = contextAttributes().alpha ? GL_RGBA8 : GL_RGB8; |
186 |
m_internalColorFormat = contextAttributes().alpha ? GL_RGBA8 : GL_RGB8; |
| 193 |
|
187 |
|
| 194 |
validateDepthStencil(packedDepthStencilExtensionName); |
188 |
validateDepthStencil(packedDepthStencilExtensionName); |
| 195 |
} |
189 |
} |
| 196 |
|
190 |
|
| 197 |
bool GraphicsContextGLOpenGL::reshapeFBOs(const IntSize& size) |
191 |
bool GraphicsContextGLANGLE::reshapeFBOs(const IntSize& size) |
| 198 |
{ |
192 |
{ |
| 199 |
auto attrs = contextAttributes(); |
193 |
auto attrs = contextAttributes(); |
| 200 |
const int width = size.width(); |
194 |
const int width = size.width(); |
|
Lines 274-280
bool GraphicsContextGLOpenGL::reshapeFBOs(const IntSize& size)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec9
|
| 274 |
return mustRestoreFBO; |
268 |
return mustRestoreFBO; |
| 275 |
} |
269 |
} |
| 276 |
|
270 |
|
| 277 |
void GraphicsContextGLOpenGL::attachDepthAndStencilBufferIfNeeded(GLuint internalDepthStencilFormat, int width, int height) |
271 |
void GraphicsContextGLANGLE::attachDepthAndStencilBufferIfNeeded(GLuint internalDepthStencilFormat, int width, int height) |
| 278 |
{ |
272 |
{ |
| 279 |
auto attrs = contextAttributes(); |
273 |
auto attrs = contextAttributes(); |
| 280 |
|
274 |
|
|
Lines 300-306
void GraphicsContextGLOpenGL::attachDepthAndStencilBufferIfNeeded(GLuint interna
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec10
|
| 300 |
} |
294 |
} |
| 301 |
} |
295 |
} |
| 302 |
|
296 |
|
| 303 |
void GraphicsContextGLOpenGL::resolveMultisamplingIfNecessary(const IntRect& rect) |
297 |
void GraphicsContextGLANGLE::resolveMultisamplingIfNecessary(const IntRect& rect) |
| 304 |
{ |
298 |
{ |
| 305 |
TemporaryANGLESetting scopedScissor(GL_SCISSOR_TEST, GL_FALSE); |
299 |
TemporaryANGLESetting scopedScissor(GL_SCISSOR_TEST, GL_FALSE); |
| 306 |
TemporaryANGLESetting scopedDither(GL_DITHER, GL_FALSE); |
300 |
TemporaryANGLESetting scopedDither(GL_DITHER, GL_FALSE); |
|
Lines 331-337
void GraphicsContextGLOpenGL::resolveMultisamplingIfNecessary(const IntRect& rec
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec11
|
| 331 |
gl::BindFramebuffer(GL_FRAMEBUFFER, boundFrameBuffer); |
325 |
gl::BindFramebuffer(GL_FRAMEBUFFER, boundFrameBuffer); |
| 332 |
} |
326 |
} |
| 333 |
|
327 |
|
| 334 |
void GraphicsContextGLOpenGL::renderbufferStorage(GCGLenum target, GCGLenum internalformat, GCGLsizei width, GCGLsizei height) |
328 |
void GraphicsContextGLANGLE::renderbufferStorage(GCGLenum target, GCGLenum internalformat, GCGLsizei width, GCGLsizei height) |
| 335 |
{ |
329 |
{ |
| 336 |
if (!makeContextCurrent()) |
330 |
if (!makeContextCurrent()) |
| 337 |
return; |
331 |
return; |
|
Lines 339-352
void GraphicsContextGLOpenGL::renderbufferStorage(GCGLenum target, GCGLenum inte
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec12
|
| 339 |
gl::RenderbufferStorage(target, internalformat, width, height); |
333 |
gl::RenderbufferStorage(target, internalformat, width, height); |
| 340 |
} |
334 |
} |
| 341 |
|
335 |
|
| 342 |
void GraphicsContextGLOpenGL::getIntegerv(GCGLenum pname, GCGLSpan<GCGLint> value) |
336 |
void GraphicsContextGLANGLE::getIntegerv(GCGLenum pname, GCGLSpan<GCGLint> value) |
| 343 |
{ |
337 |
{ |
| 344 |
if (!makeContextCurrent()) |
338 |
if (!makeContextCurrent()) |
| 345 |
return; |
339 |
return; |
| 346 |
gl::GetIntegervRobustANGLE(pname, value.bufSize, nullptr, value.data); |
340 |
gl::GetIntegervRobustANGLE(pname, value.bufSize, nullptr, value.data); |
| 347 |
} |
341 |
} |
| 348 |
|
342 |
|
| 349 |
void GraphicsContextGLOpenGL::getShaderPrecisionFormat(GCGLenum shaderType, GCGLenum precisionType, GCGLSpan<GCGLint, 2> range, GCGLint* precision) |
343 |
void GraphicsContextGLANGLE::getShaderPrecisionFormat(GCGLenum shaderType, GCGLenum precisionType, GCGLSpan<GCGLint, 2> range, GCGLint* precision) |
| 350 |
{ |
344 |
{ |
| 351 |
if (!makeContextCurrent()) |
345 |
if (!makeContextCurrent()) |
| 352 |
return; |
346 |
return; |
|
Lines 354-360
void GraphicsContextGLOpenGL::getShaderPrecisionFormat(GCGLenum shaderType, GCGL
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec13
|
| 354 |
gl::GetShaderPrecisionFormat(shaderType, precisionType, range.data, precision); |
348 |
gl::GetShaderPrecisionFormat(shaderType, precisionType, range.data, precision); |
| 355 |
} |
349 |
} |
| 356 |
|
350 |
|
| 357 |
void GraphicsContextGLOpenGL::texImage2D(GCGLenum target, GCGLint level, GCGLenum internalformat, GCGLsizei width, GCGLsizei height, GCGLint border, GCGLenum format, GCGLenum type, GCGLSpan<const GCGLvoid> pixels) |
351 |
void GraphicsContextGLANGLE::texImage2D(GCGLenum target, GCGLint level, GCGLenum internalformat, GCGLsizei width, GCGLsizei height, GCGLint border, GCGLenum format, GCGLenum type, GCGLSpan<const GCGLvoid> pixels) |
| 358 |
{ |
352 |
{ |
| 359 |
if (!m_isForWebGL2) |
353 |
if (!m_isForWebGL2) |
| 360 |
internalformat = static_cast<ExtensionsGLANGLE&>(getExtensions()).adjustWebGL1TextureInternalFormat(internalformat, format, type); |
354 |
internalformat = static_cast<ExtensionsGLANGLE&>(getExtensions()).adjustWebGL1TextureInternalFormat(internalformat, format, type); |
|
Lines 364-375
void GraphicsContextGLOpenGL::texImage2D(GCGLenum target, GCGLint level, GCGLenu
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec14
|
| 364 |
m_state.textureSeedCount.add(m_state.currentBoundTexture()); |
358 |
m_state.textureSeedCount.add(m_state.currentBoundTexture()); |
| 365 |
} |
359 |
} |
| 366 |
|
360 |
|
| 367 |
void GraphicsContextGLOpenGL::texImage2D(GCGLenum target, GCGLint level, GCGLenum internalformat, GCGLsizei width, GCGLsizei height, GCGLint border, GCGLenum format, GCGLenum type, GCGLintptr offset) |
361 |
void GraphicsContextGLANGLE::texImage2D(GCGLenum target, GCGLint level, GCGLenum internalformat, GCGLsizei width, GCGLsizei height, GCGLint border, GCGLenum format, GCGLenum type, GCGLintptr offset) |
| 368 |
{ |
362 |
{ |
| 369 |
texImage2D(target, level, internalformat, width, height, border, format, type, makeGCGLSpan(reinterpret_cast<const GCGLvoid*>(offset), 0)); |
363 |
texImage2D(target, level, internalformat, width, height, border, format, type, makeGCGLSpan(reinterpret_cast<const GCGLvoid*>(offset), 0)); |
| 370 |
} |
364 |
} |
| 371 |
|
365 |
|
| 372 |
void GraphicsContextGLOpenGL::texSubImage2D(GCGLenum target, GCGLint level, GCGLint xoff, GCGLint yoff, GCGLsizei width, GCGLsizei height, GCGLenum format, GCGLenum type, GCGLSpan<const GCGLvoid> pixels) |
366 |
void GraphicsContextGLANGLE::texSubImage2D(GCGLenum target, GCGLint level, GCGLint xoff, GCGLint yoff, GCGLsizei width, GCGLsizei height, GCGLenum format, GCGLenum type, GCGLSpan<const GCGLvoid> pixels) |
| 373 |
{ |
367 |
{ |
| 374 |
if (!makeContextCurrent()) |
368 |
if (!makeContextCurrent()) |
| 375 |
return; |
369 |
return; |
|
Lines 379-390
void GraphicsContextGLOpenGL::texSubImage2D(GCGLenum target, GCGLint level, GCGL
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec15
|
| 379 |
m_state.textureSeedCount.add(m_state.currentBoundTexture()); |
373 |
m_state.textureSeedCount.add(m_state.currentBoundTexture()); |
| 380 |
} |
374 |
} |
| 381 |
|
375 |
|
| 382 |
void GraphicsContextGLOpenGL::texSubImage2D(GCGLenum target, GCGLint level, GCGLint xoff, GCGLint yoff, GCGLsizei width, GCGLsizei height, GCGLenum format, GCGLenum type, GCGLintptr offset) |
376 |
void GraphicsContextGLANGLE::texSubImage2D(GCGLenum target, GCGLint level, GCGLint xoff, GCGLint yoff, GCGLsizei width, GCGLsizei height, GCGLenum format, GCGLenum type, GCGLintptr offset) |
| 383 |
{ |
377 |
{ |
| 384 |
texSubImage2D(target, level, xoff, yoff, width, height, format, type, makeGCGLSpan(reinterpret_cast<const GCGLvoid*>(offset), 0)); |
378 |
texSubImage2D(target, level, xoff, yoff, width, height, format, type, makeGCGLSpan(reinterpret_cast<const GCGLvoid*>(offset), 0)); |
| 385 |
} |
379 |
} |
| 386 |
|
380 |
|
| 387 |
void GraphicsContextGLOpenGL::compressedTexImage2D(GCGLenum target, int level, GCGLenum internalformat, GCGLsizei width, GCGLsizei height, int border, GCGLsizei imageSize, GCGLSpan<const GCGLvoid> data) |
381 |
void GraphicsContextGLANGLE::compressedTexImage2D(GCGLenum target, int level, GCGLenum internalformat, GCGLsizei width, GCGLsizei height, int border, GCGLsizei imageSize, GCGLSpan<const GCGLvoid> data) |
| 388 |
{ |
382 |
{ |
| 389 |
if (!makeContextCurrent()) |
383 |
if (!makeContextCurrent()) |
| 390 |
return; |
384 |
return; |
|
Lines 393-404
void GraphicsContextGLOpenGL::compressedTexImage2D(GCGLenum target, int level, G
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec16
|
| 393 |
m_state.textureSeedCount.add(m_state.currentBoundTexture()); |
387 |
m_state.textureSeedCount.add(m_state.currentBoundTexture()); |
| 394 |
} |
388 |
} |
| 395 |
|
389 |
|
| 396 |
void GraphicsContextGLOpenGL::compressedTexImage2D(GCGLenum target, int level, GCGLenum internalformat, GCGLsizei width, GCGLsizei height, int border, GCGLsizei imageSize, GCGLintptr offset) |
390 |
void GraphicsContextGLANGLE::compressedTexImage2D(GCGLenum target, int level, GCGLenum internalformat, GCGLsizei width, GCGLsizei height, int border, GCGLsizei imageSize, GCGLintptr offset) |
| 397 |
{ |
391 |
{ |
| 398 |
compressedTexImage2D(target, level, internalformat, width, height, border, imageSize, makeGCGLSpan(reinterpret_cast<const GCGLvoid*>(offset), 0)); |
392 |
compressedTexImage2D(target, level, internalformat, width, height, border, imageSize, makeGCGLSpan(reinterpret_cast<const GCGLvoid*>(offset), 0)); |
| 399 |
} |
393 |
} |
| 400 |
|
394 |
|
| 401 |
void GraphicsContextGLOpenGL::compressedTexSubImage2D(GCGLenum target, int level, int xoffset, int yoffset, GCGLsizei width, GCGLsizei height, GCGLenum format, GCGLsizei imageSize, GCGLSpan<const GCGLvoid> data) |
395 |
void GraphicsContextGLANGLE::compressedTexSubImage2D(GCGLenum target, int level, int xoffset, int yoffset, GCGLsizei width, GCGLsizei height, GCGLenum format, GCGLsizei imageSize, GCGLSpan<const GCGLvoid> data) |
| 402 |
{ |
396 |
{ |
| 403 |
if (!makeContextCurrent()) |
397 |
if (!makeContextCurrent()) |
| 404 |
return; |
398 |
return; |
|
Lines 407-418
void GraphicsContextGLOpenGL::compressedTexSubImage2D(GCGLenum target, int level
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec17
|
| 407 |
m_state.textureSeedCount.add(m_state.currentBoundTexture()); |
401 |
m_state.textureSeedCount.add(m_state.currentBoundTexture()); |
| 408 |
} |
402 |
} |
| 409 |
|
403 |
|
| 410 |
void GraphicsContextGLOpenGL::compressedTexSubImage2D(GCGLenum target, int level, int xoffset, int yoffset, GCGLsizei width, GCGLsizei height, GCGLenum format, GCGLsizei imageSize, GCGLintptr offset) |
404 |
void GraphicsContextGLANGLE::compressedTexSubImage2D(GCGLenum target, int level, int xoffset, int yoffset, GCGLsizei width, GCGLsizei height, GCGLenum format, GCGLsizei imageSize, GCGLintptr offset) |
| 411 |
{ |
405 |
{ |
| 412 |
compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, makeGCGLSpan(reinterpret_cast<const GCGLvoid*>(offset), 0)); |
406 |
compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, makeGCGLSpan(reinterpret_cast<const GCGLvoid*>(offset), 0)); |
| 413 |
} |
407 |
} |
| 414 |
|
408 |
|
| 415 |
void GraphicsContextGLOpenGL::depthRange(GCGLclampf zNear, GCGLclampf zFar) |
409 |
void GraphicsContextGLANGLE::depthRange(GCGLclampf zNear, GCGLclampf zFar) |
| 416 |
{ |
410 |
{ |
| 417 |
if (!makeContextCurrent()) |
411 |
if (!makeContextCurrent()) |
| 418 |
return; |
412 |
return; |
|
Lines 420-426
void GraphicsContextGLOpenGL::depthRange(GCGLclampf zNear, GCGLclampf zFar)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec18
|
| 420 |
gl::DepthRangef(static_cast<float>(zNear), static_cast<float>(zFar)); |
414 |
gl::DepthRangef(static_cast<float>(zNear), static_cast<float>(zFar)); |
| 421 |
} |
415 |
} |
| 422 |
|
416 |
|
| 423 |
void GraphicsContextGLOpenGL::clearDepth(GCGLclampf depth) |
417 |
void GraphicsContextGLANGLE::clearDepth(GCGLclampf depth) |
| 424 |
{ |
418 |
{ |
| 425 |
if (!makeContextCurrent()) |
419 |
if (!makeContextCurrent()) |
| 426 |
return; |
420 |
return; |
|
Lines 428-451
void GraphicsContextGLOpenGL::clearDepth(GCGLclampf depth)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec19
|
| 428 |
gl::ClearDepthf(static_cast<float>(depth)); |
422 |
gl::ClearDepthf(static_cast<float>(depth)); |
| 429 |
} |
423 |
} |
| 430 |
|
424 |
|
| 431 |
ExtensionsGL& GraphicsContextGLOpenGL::getExtensions() |
425 |
ExtensionsGL& GraphicsContextGLANGLE::getExtensions() |
| 432 |
{ |
426 |
{ |
| 433 |
if (!m_extensions) |
427 |
if (!m_extensions) |
| 434 |
m_extensions = makeUnique<ExtensionsGLANGLE>(this); |
428 |
m_extensions = makeUnique<ExtensionsGLANGLE>(this); |
| 435 |
return *m_extensions; |
429 |
return *m_extensions; |
| 436 |
} |
430 |
} |
| 437 |
|
431 |
|
| 438 |
void GraphicsContextGLOpenGL::readnPixels(GCGLint x, GCGLint y, GCGLsizei width, GCGLsizei height, GCGLenum format, GCGLenum type, GCGLSpan<GCGLvoid> data) |
432 |
void GraphicsContextGLANGLE::readnPixels(GCGLint x, GCGLint y, GCGLsizei width, GCGLsizei height, GCGLenum format, GCGLenum type, GCGLSpan<GCGLvoid> data) |
| 439 |
{ |
433 |
{ |
| 440 |
readnPixelsImpl(x, y, width, height, format, type, data.bufSize, nullptr, nullptr, nullptr, data.data, false); |
434 |
readnPixelsImpl(x, y, width, height, format, type, data.bufSize, nullptr, nullptr, nullptr, data.data, false); |
| 441 |
} |
435 |
} |
| 442 |
|
436 |
|
| 443 |
void GraphicsContextGLOpenGL::readnPixels(GCGLint x, GCGLint y, GCGLsizei width, GCGLsizei height, GCGLenum format, GCGLenum type, GCGLintptr offset) |
437 |
void GraphicsContextGLANGLE::readnPixels(GCGLint x, GCGLint y, GCGLsizei width, GCGLsizei height, GCGLenum format, GCGLenum type, GCGLintptr offset) |
| 444 |
{ |
438 |
{ |
| 445 |
readnPixelsImpl(x, y, width, height, format, type, 0, nullptr, nullptr, nullptr, reinterpret_cast<GCGLvoid*>(offset), true); |
439 |
readnPixelsImpl(x, y, width, height, format, type, 0, nullptr, nullptr, nullptr, reinterpret_cast<GCGLvoid*>(offset), true); |
| 446 |
} |
440 |
} |
| 447 |
|
441 |
|
| 448 |
void GraphicsContextGLOpenGL::readnPixelsImpl(GCGLint x, GCGLint y, GCGLsizei width, GCGLsizei height, GCGLenum format, GCGLenum type, GCGLsizei bufSize, GCGLsizei* length, GCGLsizei* columns, GCGLsizei* rows, GCGLvoid* data, bool readingToPixelBufferObject) |
442 |
void GraphicsContextGLANGLE::readnPixelsImpl(GCGLint x, GCGLint y, GCGLsizei width, GCGLsizei height, GCGLenum format, GCGLenum type, GCGLsizei bufSize, GCGLsizei* length, GCGLsizei* columns, GCGLsizei* rows, GCGLvoid* data, bool readingToPixelBufferObject) |
| 449 |
{ |
443 |
{ |
| 450 |
if (!makeContextCurrent()) |
444 |
if (!makeContextCurrent()) |
| 451 |
return; |
445 |
return; |
|
Lines 482-490
void GraphicsContextGLOpenGL::readnPixelsImpl(GCGLint x, GCGLint y, GCGLsizei wi
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec20
|
| 482 |
#endif |
476 |
#endif |
| 483 |
} |
477 |
} |
| 484 |
|
478 |
|
| 485 |
// The contents of GraphicsContextGLOpenGLCommon follow, ported to use ANGLE. |
479 |
// The contents of GraphicsContextGLANGLECommon follow, ported to use ANGLE. |
| 486 |
|
480 |
|
| 487 |
void GraphicsContextGLOpenGL::validateDepthStencil(const char* packedDepthStencilExtension) |
481 |
void GraphicsContextGLANGLE::validateDepthStencil(const char* packedDepthStencilExtension) |
| 488 |
{ |
482 |
{ |
| 489 |
ExtensionsGL& extensions = getExtensions(); |
483 |
ExtensionsGL& extensions = getExtensions(); |
| 490 |
// FIXME: Since the constructors of various platforms are not shared, we initialize this here. |
484 |
// FIXME: Since the constructors of various platforms are not shared, we initialize this here. |
|
Lines 522-528
void GraphicsContextGLOpenGL::validateDepthStencil(const char* packedDepthStenci
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec21
|
| 522 |
} |
516 |
} |
| 523 |
} |
517 |
} |
| 524 |
|
518 |
|
| 525 |
void GraphicsContextGLOpenGL::prepareTexture() |
519 |
void GraphicsContextGLANGLE::prepareTexture() |
| 526 |
{ |
520 |
{ |
| 527 |
if (m_layerComposited) |
521 |
if (m_layerComposited) |
| 528 |
return; |
522 |
return; |
|
Lines 533-539
void GraphicsContextGLOpenGL::prepareTexture()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec22
|
| 533 |
prepareTextureImpl(); |
527 |
prepareTextureImpl(); |
| 534 |
} |
528 |
} |
| 535 |
|
529 |
|
| 536 |
void GraphicsContextGLOpenGL::prepareTextureImpl() |
530 |
void GraphicsContextGLANGLE::prepareTextureImpl() |
| 537 |
{ |
531 |
{ |
| 538 |
ASSERT(!m_layerComposited); |
532 |
ASSERT(!m_layerComposited); |
| 539 |
|
533 |
|
|
Lines 576-582
void GraphicsContextGLOpenGL::prepareTextureImpl()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec23
|
| 576 |
#endif |
570 |
#endif |
| 577 |
} |
571 |
} |
| 578 |
|
572 |
|
| 579 |
std::optional<PixelBuffer> GraphicsContextGLOpenGL::readRenderingResults() |
573 |
std::optional<PixelBuffer> GraphicsContextGLANGLE::readRenderingResults() |
| 580 |
{ |
574 |
{ |
| 581 |
ScopedRestoreReadFramebufferBinding fboBinding(m_isForWebGL2, m_state.boundReadFBO); |
575 |
ScopedRestoreReadFramebufferBinding fboBinding(m_isForWebGL2, m_state.boundReadFBO); |
| 582 |
if (contextAttributes().antialias) { |
576 |
if (contextAttributes().antialias) { |
|
Lines 587-593
std::optional<PixelBuffer> GraphicsContextGLOpenGL::readRenderingResults()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec24
|
| 587 |
return readPixelsForPaintResults(); |
581 |
return readPixelsForPaintResults(); |
| 588 |
} |
582 |
} |
| 589 |
|
583 |
|
| 590 |
void GraphicsContextGLOpenGL::reshape(int width, int height) |
584 |
void GraphicsContextGLANGLE::reshape(int width, int height) |
| 591 |
{ |
585 |
{ |
| 592 |
if (width == m_currentWidth && height == m_currentHeight) |
586 |
if (width == m_currentWidth && height == m_currentHeight) |
| 593 |
return; |
587 |
return; |
|
Lines 673-679
void GraphicsContextGLOpenGL::reshape(int width, int height)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec25
|
| 673 |
gl::Flush(); |
667 |
gl::Flush(); |
| 674 |
} |
668 |
} |
| 675 |
|
669 |
|
| 676 |
void GraphicsContextGLOpenGL::activeTexture(GCGLenum texture) |
670 |
void GraphicsContextGLANGLE::activeTexture(GCGLenum texture) |
| 677 |
{ |
671 |
{ |
| 678 |
if (!makeContextCurrent()) |
672 |
if (!makeContextCurrent()) |
| 679 |
return; |
673 |
return; |
|
Lines 682-688
void GraphicsContextGLOpenGL::activeTexture(GCGLenum texture)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec26
|
| 682 |
gl::ActiveTexture(texture); |
676 |
gl::ActiveTexture(texture); |
| 683 |
} |
677 |
} |
| 684 |
|
678 |
|
| 685 |
void GraphicsContextGLOpenGL::attachShader(PlatformGLObject program, PlatformGLObject shader) |
679 |
void GraphicsContextGLANGLE::attachShader(PlatformGLObject program, PlatformGLObject shader) |
| 686 |
{ |
680 |
{ |
| 687 |
ASSERT(program); |
681 |
ASSERT(program); |
| 688 |
ASSERT(shader); |
682 |
ASSERT(shader); |
|
Lines 692-698
void GraphicsContextGLOpenGL::attachShader(PlatformGLObject program, PlatformGLO
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec27
|
| 692 |
gl::AttachShader(program, shader); |
686 |
gl::AttachShader(program, shader); |
| 693 |
} |
687 |
} |
| 694 |
|
688 |
|
| 695 |
void GraphicsContextGLOpenGL::bindAttribLocation(PlatformGLObject program, GCGLuint index, const String& name) |
689 |
void GraphicsContextGLANGLE::bindAttribLocation(PlatformGLObject program, GCGLuint index, const String& name) |
| 696 |
{ |
690 |
{ |
| 697 |
ASSERT(program); |
691 |
ASSERT(program); |
| 698 |
if (!makeContextCurrent()) |
692 |
if (!makeContextCurrent()) |
|
Lines 701-707
void GraphicsContextGLOpenGL::bindAttribLocation(PlatformGLObject program, GCGLu
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec28
|
| 701 |
gl::BindAttribLocation(program, index, name.utf8().data()); |
695 |
gl::BindAttribLocation(program, index, name.utf8().data()); |
| 702 |
} |
696 |
} |
| 703 |
|
697 |
|
| 704 |
void GraphicsContextGLOpenGL::bindBuffer(GCGLenum target, PlatformGLObject buffer) |
698 |
void GraphicsContextGLANGLE::bindBuffer(GCGLenum target, PlatformGLObject buffer) |
| 705 |
{ |
699 |
{ |
| 706 |
if (!makeContextCurrent()) |
700 |
if (!makeContextCurrent()) |
| 707 |
return; |
701 |
return; |
|
Lines 709-715
void GraphicsContextGLOpenGL::bindBuffer(GCGLenum target, PlatformGLObject buffe
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec29
|
| 709 |
gl::BindBuffer(target, buffer); |
703 |
gl::BindBuffer(target, buffer); |
| 710 |
} |
704 |
} |
| 711 |
|
705 |
|
| 712 |
void GraphicsContextGLOpenGL::bindFramebuffer(GCGLenum target, PlatformGLObject buffer) |
706 |
void GraphicsContextGLANGLE::bindFramebuffer(GCGLenum target, PlatformGLObject buffer) |
| 713 |
{ |
707 |
{ |
| 714 |
if (!makeContextCurrent()) |
708 |
if (!makeContextCurrent()) |
| 715 |
return; |
709 |
return; |
|
Lines 730-736
void GraphicsContextGLOpenGL::bindFramebuffer(GCGLenum target, PlatformGLObject
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec30
|
| 730 |
} |
724 |
} |
| 731 |
} |
725 |
} |
| 732 |
|
726 |
|
| 733 |
void GraphicsContextGLOpenGL::bindRenderbuffer(GCGLenum target, PlatformGLObject renderbuffer) |
727 |
void GraphicsContextGLANGLE::bindRenderbuffer(GCGLenum target, PlatformGLObject renderbuffer) |
| 734 |
{ |
728 |
{ |
| 735 |
if (!makeContextCurrent()) |
729 |
if (!makeContextCurrent()) |
| 736 |
return; |
730 |
return; |
|
Lines 739-745
void GraphicsContextGLOpenGL::bindRenderbuffer(GCGLenum target, PlatformGLObject
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec31
|
| 739 |
} |
733 |
} |
| 740 |
|
734 |
|
| 741 |
|
735 |
|
| 742 |
void GraphicsContextGLOpenGL::bindTexture(GCGLenum target, PlatformGLObject texture) |
736 |
void GraphicsContextGLANGLE::bindTexture(GCGLenum target, PlatformGLObject texture) |
| 743 |
{ |
737 |
{ |
| 744 |
if (!makeContextCurrent()) |
738 |
if (!makeContextCurrent()) |
| 745 |
return; |
739 |
return; |
|
Lines 748-754
void GraphicsContextGLOpenGL::bindTexture(GCGLenum target, PlatformGLObject text
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec32
|
| 748 |
gl::BindTexture(target, texture); |
742 |
gl::BindTexture(target, texture); |
| 749 |
} |
743 |
} |
| 750 |
|
744 |
|
| 751 |
void GraphicsContextGLOpenGL::blendColor(GCGLclampf red, GCGLclampf green, GCGLclampf blue, GCGLclampf alpha) |
745 |
void GraphicsContextGLANGLE::blendColor(GCGLclampf red, GCGLclampf green, GCGLclampf blue, GCGLclampf alpha) |
| 752 |
{ |
746 |
{ |
| 753 |
if (!makeContextCurrent()) |
747 |
if (!makeContextCurrent()) |
| 754 |
return; |
748 |
return; |
|
Lines 756-762
void GraphicsContextGLOpenGL::blendColor(GCGLclampf red, GCGLclampf green, GCGLc
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec33
|
| 756 |
gl::BlendColor(red, green, blue, alpha); |
750 |
gl::BlendColor(red, green, blue, alpha); |
| 757 |
} |
751 |
} |
| 758 |
|
752 |
|
| 759 |
void GraphicsContextGLOpenGL::blendEquation(GCGLenum mode) |
753 |
void GraphicsContextGLANGLE::blendEquation(GCGLenum mode) |
| 760 |
{ |
754 |
{ |
| 761 |
if (!makeContextCurrent()) |
755 |
if (!makeContextCurrent()) |
| 762 |
return; |
756 |
return; |
|
Lines 764-770
void GraphicsContextGLOpenGL::blendEquation(GCGLenum mode)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec34
|
| 764 |
gl::BlendEquation(mode); |
758 |
gl::BlendEquation(mode); |
| 765 |
} |
759 |
} |
| 766 |
|
760 |
|
| 767 |
void GraphicsContextGLOpenGL::blendEquationSeparate(GCGLenum modeRGB, GCGLenum modeAlpha) |
761 |
void GraphicsContextGLANGLE::blendEquationSeparate(GCGLenum modeRGB, GCGLenum modeAlpha) |
| 768 |
{ |
762 |
{ |
| 769 |
if (!makeContextCurrent()) |
763 |
if (!makeContextCurrent()) |
| 770 |
return; |
764 |
return; |
|
Lines 773-779
void GraphicsContextGLOpenGL::blendEquationSeparate(GCGLenum modeRGB, GCGLenum m
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec35
|
| 773 |
} |
767 |
} |
| 774 |
|
768 |
|
| 775 |
|
769 |
|
| 776 |
void GraphicsContextGLOpenGL::blendFunc(GCGLenum sfactor, GCGLenum dfactor) |
770 |
void GraphicsContextGLANGLE::blendFunc(GCGLenum sfactor, GCGLenum dfactor) |
| 777 |
{ |
771 |
{ |
| 778 |
if (!makeContextCurrent()) |
772 |
if (!makeContextCurrent()) |
| 779 |
return; |
773 |
return; |
|
Lines 781-787
void GraphicsContextGLOpenGL::blendFunc(GCGLenum sfactor, GCGLenum dfactor)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec36
|
| 781 |
gl::BlendFunc(sfactor, dfactor); |
775 |
gl::BlendFunc(sfactor, dfactor); |
| 782 |
} |
776 |
} |
| 783 |
|
777 |
|
| 784 |
void GraphicsContextGLOpenGL::blendFuncSeparate(GCGLenum srcRGB, GCGLenum dstRGB, GCGLenum srcAlpha, GCGLenum dstAlpha) |
778 |
void GraphicsContextGLANGLE::blendFuncSeparate(GCGLenum srcRGB, GCGLenum dstRGB, GCGLenum srcAlpha, GCGLenum dstAlpha) |
| 785 |
{ |
779 |
{ |
| 786 |
if (!makeContextCurrent()) |
780 |
if (!makeContextCurrent()) |
| 787 |
return; |
781 |
return; |
|
Lines 789-795
void GraphicsContextGLOpenGL::blendFuncSeparate(GCGLenum srcRGB, GCGLenum dstRGB
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec37
|
| 789 |
gl::BlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha); |
783 |
gl::BlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha); |
| 790 |
} |
784 |
} |
| 791 |
|
785 |
|
| 792 |
void GraphicsContextGLOpenGL::bufferData(GCGLenum target, GCGLsizeiptr size, GCGLenum usage) |
786 |
void GraphicsContextGLANGLE::bufferData(GCGLenum target, GCGLsizeiptr size, GCGLenum usage) |
| 793 |
{ |
787 |
{ |
| 794 |
if (!makeContextCurrent()) |
788 |
if (!makeContextCurrent()) |
| 795 |
return; |
789 |
return; |
|
Lines 797-803
void GraphicsContextGLOpenGL::bufferData(GCGLenum target, GCGLsizeiptr size, GCG
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec38
|
| 797 |
gl::BufferData(target, size, 0, usage); |
791 |
gl::BufferData(target, size, 0, usage); |
| 798 |
} |
792 |
} |
| 799 |
|
793 |
|
| 800 |
void GraphicsContextGLOpenGL::bufferData(GCGLenum target, GCGLSpan<const GCGLvoid> data, GCGLenum usage) |
794 |
void GraphicsContextGLANGLE::bufferData(GCGLenum target, GCGLSpan<const GCGLvoid> data, GCGLenum usage) |
| 801 |
{ |
795 |
{ |
| 802 |
if (!makeContextCurrent()) |
796 |
if (!makeContextCurrent()) |
| 803 |
return; |
797 |
return; |
|
Lines 805-811
void GraphicsContextGLOpenGL::bufferData(GCGLenum target, GCGLSpan<const GCGLvoi
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec39
|
| 805 |
gl::BufferData(target, data.bufSize, data.data, usage); |
799 |
gl::BufferData(target, data.bufSize, data.data, usage); |
| 806 |
} |
800 |
} |
| 807 |
|
801 |
|
| 808 |
void GraphicsContextGLOpenGL::bufferSubData(GCGLenum target, GCGLintptr offset, GCGLSpan<const GCGLvoid> data) |
802 |
void GraphicsContextGLANGLE::bufferSubData(GCGLenum target, GCGLintptr offset, GCGLSpan<const GCGLvoid> data) |
| 809 |
{ |
803 |
{ |
| 810 |
if (!makeContextCurrent()) |
804 |
if (!makeContextCurrent()) |
| 811 |
return; |
805 |
return; |
|
Lines 813-819
void GraphicsContextGLOpenGL::bufferSubData(GCGLenum target, GCGLintptr offset,
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec40
|
| 813 |
gl::BufferSubData(target, offset, data.bufSize, data.data); |
807 |
gl::BufferSubData(target, offset, data.bufSize, data.data); |
| 814 |
} |
808 |
} |
| 815 |
|
809 |
|
| 816 |
void GraphicsContextGLOpenGL::getBufferSubData(GCGLenum target, GCGLintptr offset, GCGLSpan<GCGLvoid> data) |
810 |
void GraphicsContextGLANGLE::getBufferSubData(GCGLenum target, GCGLintptr offset, GCGLSpan<GCGLvoid> data) |
| 817 |
{ |
811 |
{ |
| 818 |
if (!makeContextCurrent()) |
812 |
if (!makeContextCurrent()) |
| 819 |
return; |
813 |
return; |
|
Lines 825-831
void GraphicsContextGLOpenGL::getBufferSubData(GCGLenum target, GCGLintptr offse
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec41
|
| 825 |
synthesizeGLError(GraphicsContextGL::INVALID_OPERATION); |
819 |
synthesizeGLError(GraphicsContextGL::INVALID_OPERATION); |
| 826 |
} |
820 |
} |
| 827 |
|
821 |
|
| 828 |
void GraphicsContextGLOpenGL::copyBufferSubData(GCGLenum readTarget, GCGLenum writeTarget, GCGLintptr readOffset, GCGLintptr writeOffset, GCGLsizeiptr size) |
822 |
void GraphicsContextGLANGLE::copyBufferSubData(GCGLenum readTarget, GCGLenum writeTarget, GCGLintptr readOffset, GCGLintptr writeOffset, GCGLsizeiptr size) |
| 829 |
{ |
823 |
{ |
| 830 |
if (!makeContextCurrent()) |
824 |
if (!makeContextCurrent()) |
| 831 |
return; |
825 |
return; |
|
Lines 833-846
void GraphicsContextGLOpenGL::copyBufferSubData(GCGLenum readTarget, GCGLenum wr
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec42
|
| 833 |
gl::CopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size); |
827 |
gl::CopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size); |
| 834 |
} |
828 |
} |
| 835 |
|
829 |
|
| 836 |
void GraphicsContextGLOpenGL::getInternalformativ(GCGLenum target, GCGLenum internalformat, GCGLenum pname, GCGLSpan<GCGLint> data) |
830 |
void GraphicsContextGLANGLE::getInternalformativ(GCGLenum target, GCGLenum internalformat, GCGLenum pname, GCGLSpan<GCGLint> data) |
| 837 |
{ |
831 |
{ |
| 838 |
if (!makeContextCurrent()) |
832 |
if (!makeContextCurrent()) |
| 839 |
return; |
833 |
return; |
| 840 |
gl::GetInternalformativRobustANGLE(target, internalformat, pname, data.bufSize, nullptr, data.data); |
834 |
gl::GetInternalformativRobustANGLE(target, internalformat, pname, data.bufSize, nullptr, data.data); |
| 841 |
} |
835 |
} |
| 842 |
|
836 |
|
| 843 |
void GraphicsContextGLOpenGL::renderbufferStorageMultisample(GCGLenum target, GCGLsizei samples, GCGLenum internalformat, GCGLsizei width, GCGLsizei height) |
837 |
void GraphicsContextGLANGLE::renderbufferStorageMultisample(GCGLenum target, GCGLsizei samples, GCGLenum internalformat, GCGLsizei width, GCGLsizei height) |
| 844 |
{ |
838 |
{ |
| 845 |
if (!makeContextCurrent()) |
839 |
if (!makeContextCurrent()) |
| 846 |
return; |
840 |
return; |
|
Lines 848-854
void GraphicsContextGLOpenGL::renderbufferStorageMultisample(GCGLenum target, GC
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec43
|
| 848 |
gl::RenderbufferStorageMultisample(target, samples, internalformat, width, height); |
842 |
gl::RenderbufferStorageMultisample(target, samples, internalformat, width, height); |
| 849 |
} |
843 |
} |
| 850 |
|
844 |
|
| 851 |
void GraphicsContextGLOpenGL::texStorage2D(GCGLenum target, GCGLsizei levels, GCGLenum internalformat, GCGLsizei width, GCGLsizei height) |
845 |
void GraphicsContextGLANGLE::texStorage2D(GCGLenum target, GCGLsizei levels, GCGLenum internalformat, GCGLsizei width, GCGLsizei height) |
| 852 |
{ |
846 |
{ |
| 853 |
if (!makeContextCurrent()) |
847 |
if (!makeContextCurrent()) |
| 854 |
return; |
848 |
return; |
|
Lines 857-863
void GraphicsContextGLOpenGL::texStorage2D(GCGLenum target, GCGLsizei levels, GC
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec44
|
| 857 |
m_state.textureSeedCount.add(m_state.currentBoundTexture()); |
851 |
m_state.textureSeedCount.add(m_state.currentBoundTexture()); |
| 858 |
} |
852 |
} |
| 859 |
|
853 |
|
| 860 |
void GraphicsContextGLOpenGL::texStorage3D(GCGLenum target, GCGLsizei levels, GCGLenum internalformat, GCGLsizei width, GCGLsizei height, GCGLsizei depth) |
854 |
void GraphicsContextGLANGLE::texStorage3D(GCGLenum target, GCGLsizei levels, GCGLenum internalformat, GCGLsizei width, GCGLsizei height, GCGLsizei depth) |
| 861 |
{ |
855 |
{ |
| 862 |
if (!makeContextCurrent()) |
856 |
if (!makeContextCurrent()) |
| 863 |
return; |
857 |
return; |
|
Lines 866-872
void GraphicsContextGLOpenGL::texStorage3D(GCGLenum target, GCGLsizei levels, GC
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec45
|
| 866 |
m_state.textureSeedCount.add(m_state.currentBoundTexture()); |
860 |
m_state.textureSeedCount.add(m_state.currentBoundTexture()); |
| 867 |
} |
861 |
} |
| 868 |
|
862 |
|
| 869 |
void GraphicsContextGLOpenGL::texImage3D(GCGLenum target, int level, int internalformat, GCGLsizei width, GCGLsizei height, GCGLsizei depth, int border, GCGLenum format, GCGLenum type, GCGLSpan<const GCGLvoid> pixels) |
863 |
void GraphicsContextGLANGLE::texImage3D(GCGLenum target, int level, int internalformat, GCGLsizei width, GCGLsizei height, GCGLsizei depth, int border, GCGLenum format, GCGLenum type, GCGLSpan<const GCGLvoid> pixels) |
| 870 |
{ |
864 |
{ |
| 871 |
if (!makeContextCurrent()) |
865 |
if (!makeContextCurrent()) |
| 872 |
return; |
866 |
return; |
|
Lines 874-885
void GraphicsContextGLOpenGL::texImage3D(GCGLenum target, int level, int interna
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec46
|
| 874 |
gl::TexImage3DRobustANGLE(target, level, internalformat, width, height, depth, border, format, type, pixels.bufSize, pixels.data); |
868 |
gl::TexImage3DRobustANGLE(target, level, internalformat, width, height, depth, border, format, type, pixels.bufSize, pixels.data); |
| 875 |
} |
869 |
} |
| 876 |
|
870 |
|
| 877 |
void GraphicsContextGLOpenGL::texImage3D(GCGLenum target, int level, int internalformat, GCGLsizei width, GCGLsizei height, GCGLsizei depth, int border, GCGLenum format, GCGLenum type, GCGLintptr offset) |
871 |
void GraphicsContextGLANGLE::texImage3D(GCGLenum target, int level, int internalformat, GCGLsizei width, GCGLsizei height, GCGLsizei depth, int border, GCGLenum format, GCGLenum type, GCGLintptr offset) |
| 878 |
{ |
872 |
{ |
| 879 |
texImage3D(target, level, internalformat, width, height, depth, border, format, type, makeGCGLSpan(reinterpret_cast<const GCGLvoid*>(offset), 0)); |
873 |
texImage3D(target, level, internalformat, width, height, depth, border, format, type, makeGCGLSpan(reinterpret_cast<const GCGLvoid*>(offset), 0)); |
| 880 |
} |
874 |
} |
| 881 |
|
875 |
|
| 882 |
void GraphicsContextGLOpenGL::texSubImage3D(GCGLenum target, int level, int xoffset, int yoffset, int zoffset, GCGLsizei width, GCGLsizei height, GCGLsizei depth, GCGLenum format, GCGLenum type, GCGLSpan<const GCGLvoid> pixels) |
876 |
void GraphicsContextGLANGLE::texSubImage3D(GCGLenum target, int level, int xoffset, int yoffset, int zoffset, GCGLsizei width, GCGLsizei height, GCGLsizei depth, GCGLenum format, GCGLenum type, GCGLSpan<const GCGLvoid> pixels) |
| 883 |
{ |
877 |
{ |
| 884 |
if (!makeContextCurrent()) |
878 |
if (!makeContextCurrent()) |
| 885 |
return; |
879 |
return; |
|
Lines 887-898
void GraphicsContextGLOpenGL::texSubImage3D(GCGLenum target, int level, int xoff
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec47
|
| 887 |
gl::TexSubImage3DRobustANGLE(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels.bufSize, pixels.data); |
881 |
gl::TexSubImage3DRobustANGLE(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels.bufSize, pixels.data); |
| 888 |
} |
882 |
} |
| 889 |
|
883 |
|
| 890 |
void GraphicsContextGLOpenGL::texSubImage3D(GCGLenum target, int level, int xoffset, int yoffset, int zoffset, GCGLsizei width, GCGLsizei height, GCGLsizei depth, GCGLenum format, GCGLenum type, GCGLintptr offset) |
884 |
void GraphicsContextGLANGLE::texSubImage3D(GCGLenum target, int level, int xoffset, int yoffset, int zoffset, GCGLsizei width, GCGLsizei height, GCGLsizei depth, GCGLenum format, GCGLenum type, GCGLintptr offset) |
| 891 |
{ |
885 |
{ |
| 892 |
texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, makeGCGLSpan(reinterpret_cast<const GCGLvoid*>(offset), 0)); |
886 |
texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, makeGCGLSpan(reinterpret_cast<const GCGLvoid*>(offset), 0)); |
| 893 |
} |
887 |
} |
| 894 |
|
888 |
|
| 895 |
void GraphicsContextGLOpenGL::compressedTexImage3D(GCGLenum target, int level, GCGLenum internalformat, GCGLsizei width, GCGLsizei height, GCGLsizei depth, int border, GCGLsizei imageSize, GCGLSpan<const GCGLvoid> data) |
889 |
void GraphicsContextGLANGLE::compressedTexImage3D(GCGLenum target, int level, GCGLenum internalformat, GCGLsizei width, GCGLsizei height, GCGLsizei depth, int border, GCGLsizei imageSize, GCGLSpan<const GCGLvoid> data) |
| 896 |
{ |
890 |
{ |
| 897 |
if (!makeContextCurrent()) |
891 |
if (!makeContextCurrent()) |
| 898 |
return; |
892 |
return; |
|
Lines 900-911
void GraphicsContextGLOpenGL::compressedTexImage3D(GCGLenum target, int level, G
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec48
|
| 900 |
gl::CompressedTexImage3DRobustANGLE(target, level, internalformat, width, height, depth, border, imageSize, data.bufSize, data.data); |
894 |
gl::CompressedTexImage3DRobustANGLE(target, level, internalformat, width, height, depth, border, imageSize, data.bufSize, data.data); |
| 901 |
} |
895 |
} |
| 902 |
|
896 |
|
| 903 |
void GraphicsContextGLOpenGL::compressedTexImage3D(GCGLenum target, int level, GCGLenum internalformat, GCGLsizei width, GCGLsizei height, GCGLsizei depth, int border, GCGLsizei imageSize, GCGLintptr offset) |
897 |
void GraphicsContextGLANGLE::compressedTexImage3D(GCGLenum target, int level, GCGLenum internalformat, GCGLsizei width, GCGLsizei height, GCGLsizei depth, int border, GCGLsizei imageSize, GCGLintptr offset) |
| 904 |
{ |
898 |
{ |
| 905 |
compressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, makeGCGLSpan(reinterpret_cast<const GCGLvoid*>(offset), 0)); |
899 |
compressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, makeGCGLSpan(reinterpret_cast<const GCGLvoid*>(offset), 0)); |
| 906 |
} |
900 |
} |
| 907 |
|
901 |
|
| 908 |
void GraphicsContextGLOpenGL::compressedTexSubImage3D(GCGLenum target, int level, int xoffset, int yoffset, int zoffset, GCGLsizei width, GCGLsizei height, GCGLsizei depth, GCGLenum format, GCGLsizei imageSize, GCGLSpan<const GCGLvoid> data) |
902 |
void GraphicsContextGLANGLE::compressedTexSubImage3D(GCGLenum target, int level, int xoffset, int yoffset, int zoffset, GCGLsizei width, GCGLsizei height, GCGLsizei depth, GCGLenum format, GCGLsizei imageSize, GCGLSpan<const GCGLvoid> data) |
| 909 |
{ |
903 |
{ |
| 910 |
if (!makeContextCurrent()) |
904 |
if (!makeContextCurrent()) |
| 911 |
return; |
905 |
return; |
|
Lines 913-924
void GraphicsContextGLOpenGL::compressedTexSubImage3D(GCGLenum target, int level
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec49
|
| 913 |
gl::CompressedTexSubImage3DRobustANGLE(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data.bufSize, data.data); |
907 |
gl::CompressedTexSubImage3DRobustANGLE(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data.bufSize, data.data); |
| 914 |
} |
908 |
} |
| 915 |
|
909 |
|
| 916 |
void GraphicsContextGLOpenGL::compressedTexSubImage3D(GCGLenum target, int level, int xoffset, int yoffset, int zoffset, GCGLsizei width, GCGLsizei height, GCGLsizei depth, GCGLenum format, GCGLsizei imageSize, GCGLintptr offset) |
910 |
void GraphicsContextGLANGLE::compressedTexSubImage3D(GCGLenum target, int level, int xoffset, int yoffset, int zoffset, GCGLsizei width, GCGLsizei height, GCGLsizei depth, GCGLenum format, GCGLsizei imageSize, GCGLintptr offset) |
| 917 |
{ |
911 |
{ |
| 918 |
compressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, makeGCGLSpan(reinterpret_cast<const GCGLvoid*>(offset), 0)); |
912 |
compressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, makeGCGLSpan(reinterpret_cast<const GCGLvoid*>(offset), 0)); |
| 919 |
} |
913 |
} |
| 920 |
|
914 |
|
| 921 |
Vector<GCGLint> GraphicsContextGLOpenGL::getActiveUniforms(PlatformGLObject program, const Vector<GCGLuint>& uniformIndices, GCGLenum pname) |
915 |
Vector<GCGLint> GraphicsContextGLANGLE::getActiveUniforms(PlatformGLObject program, const Vector<GCGLuint>& uniformIndices, GCGLenum pname) |
| 922 |
{ |
916 |
{ |
| 923 |
Vector<GCGLint> result(uniformIndices.size(), 0); |
917 |
Vector<GCGLint> result(uniformIndices.size(), 0); |
| 924 |
ASSERT(program); |
918 |
ASSERT(program); |
|
Lines 929-935
Vector<GCGLint> GraphicsContextGLOpenGL::getActiveUniforms(PlatformGLObject prog
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec50
|
| 929 |
return result; |
923 |
return result; |
| 930 |
} |
924 |
} |
| 931 |
|
925 |
|
| 932 |
GCGLenum GraphicsContextGLOpenGL::checkFramebufferStatus(GCGLenum target) |
926 |
GCGLenum GraphicsContextGLANGLE::checkFramebufferStatus(GCGLenum target) |
| 933 |
{ |
927 |
{ |
| 934 |
if (!makeContextCurrent()) |
928 |
if (!makeContextCurrent()) |
| 935 |
return GL_INVALID_OPERATION; |
929 |
return GL_INVALID_OPERATION; |
|
Lines 937-943
GCGLenum GraphicsContextGLOpenGL::checkFramebufferStatus(GCGLenum target)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec51
|
| 937 |
return gl::CheckFramebufferStatus(target); |
931 |
return gl::CheckFramebufferStatus(target); |
| 938 |
} |
932 |
} |
| 939 |
|
933 |
|
| 940 |
void GraphicsContextGLOpenGL::clearColor(GCGLclampf r, GCGLclampf g, GCGLclampf b, GCGLclampf a) |
934 |
void GraphicsContextGLANGLE::clearColor(GCGLclampf r, GCGLclampf g, GCGLclampf b, GCGLclampf a) |
| 941 |
{ |
935 |
{ |
| 942 |
if (!makeContextCurrent()) |
936 |
if (!makeContextCurrent()) |
| 943 |
return; |
937 |
return; |
|
Lines 945-951
void GraphicsContextGLOpenGL::clearColor(GCGLclampf r, GCGLclampf g, GCGLclampf
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec52
|
| 945 |
gl::ClearColor(r, g, b, a); |
939 |
gl::ClearColor(r, g, b, a); |
| 946 |
} |
940 |
} |
| 947 |
|
941 |
|
| 948 |
void GraphicsContextGLOpenGL::clear(GCGLbitfield mask) |
942 |
void GraphicsContextGLANGLE::clear(GCGLbitfield mask) |
| 949 |
{ |
943 |
{ |
| 950 |
if (!makeContextCurrent()) |
944 |
if (!makeContextCurrent()) |
| 951 |
return; |
945 |
return; |
|
Lines 954-960
void GraphicsContextGLOpenGL::clear(GCGLbitfield mask)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec53
|
| 954 |
checkGPUStatus(); |
948 |
checkGPUStatus(); |
| 955 |
} |
949 |
} |
| 956 |
|
950 |
|
| 957 |
void GraphicsContextGLOpenGL::clearStencil(GCGLint s) |
951 |
void GraphicsContextGLANGLE::clearStencil(GCGLint s) |
| 958 |
{ |
952 |
{ |
| 959 |
if (!makeContextCurrent()) |
953 |
if (!makeContextCurrent()) |
| 960 |
return; |
954 |
return; |
|
Lines 962-968
void GraphicsContextGLOpenGL::clearStencil(GCGLint s)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec54
|
| 962 |
gl::ClearStencil(s); |
956 |
gl::ClearStencil(s); |
| 963 |
} |
957 |
} |
| 964 |
|
958 |
|
| 965 |
void GraphicsContextGLOpenGL::colorMask(GCGLboolean red, GCGLboolean green, GCGLboolean blue, GCGLboolean alpha) |
959 |
void GraphicsContextGLANGLE::colorMask(GCGLboolean red, GCGLboolean green, GCGLboolean blue, GCGLboolean alpha) |
| 966 |
{ |
960 |
{ |
| 967 |
if (!makeContextCurrent()) |
961 |
if (!makeContextCurrent()) |
| 968 |
return; |
962 |
return; |
|
Lines 970-976
void GraphicsContextGLOpenGL::colorMask(GCGLboolean red, GCGLboolean green, GCGL
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec55
|
| 970 |
gl::ColorMask(red, green, blue, alpha); |
964 |
gl::ColorMask(red, green, blue, alpha); |
| 971 |
} |
965 |
} |
| 972 |
|
966 |
|
| 973 |
void GraphicsContextGLOpenGL::compileShader(PlatformGLObject shader) |
967 |
void GraphicsContextGLANGLE::compileShader(PlatformGLObject shader) |
| 974 |
{ |
968 |
{ |
| 975 |
ASSERT(shader); |
969 |
ASSERT(shader); |
| 976 |
if (!makeContextCurrent()) |
970 |
if (!makeContextCurrent()) |
|
Lines 988-994
void GraphicsContextGLOpenGL::compileShader(PlatformGLObject shader)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec56
|
| 988 |
#endif |
982 |
#endif |
| 989 |
} |
983 |
} |
| 990 |
|
984 |
|
| 991 |
void GraphicsContextGLOpenGL::compileShaderDirect(PlatformGLObject shader) |
985 |
void GraphicsContextGLANGLE::compileShaderDirect(PlatformGLObject shader) |
| 992 |
{ |
986 |
{ |
| 993 |
ASSERT(shader); |
987 |
ASSERT(shader); |
| 994 |
if (!makeContextCurrent()) |
988 |
if (!makeContextCurrent()) |
|
Lines 997-1003
void GraphicsContextGLOpenGL::compileShaderDirect(PlatformGLObject shader)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec57
|
| 997 |
gl::CompileShader(shader); |
991 |
gl::CompileShader(shader); |
| 998 |
} |
992 |
} |
| 999 |
|
993 |
|
| 1000 |
void GraphicsContextGLOpenGL::texImage2DDirect(GCGLenum target, GCGLint level, GCGLenum internalformat, GCGLsizei width, GCGLsizei height, GCGLint border, GCGLenum format, GCGLenum type, const void* pixels) |
994 |
void GraphicsContextGLANGLE::texImage2DDirect(GCGLenum target, GCGLint level, GCGLenum internalformat, GCGLsizei width, GCGLsizei height, GCGLint border, GCGLenum format, GCGLenum type, const void* pixels) |
| 1001 |
{ |
995 |
{ |
| 1002 |
if (!makeContextCurrent()) |
996 |
if (!makeContextCurrent()) |
| 1003 |
return; |
997 |
return; |
|
Lines 1005-1011
void GraphicsContextGLOpenGL::texImage2DDirect(GCGLenum target, GCGLint level, G
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec58
|
| 1005 |
m_state.textureSeedCount.add(m_state.currentBoundTexture()); |
999 |
m_state.textureSeedCount.add(m_state.currentBoundTexture()); |
| 1006 |
} |
1000 |
} |
| 1007 |
|
1001 |
|
| 1008 |
void GraphicsContextGLOpenGL::copyTexImage2D(GCGLenum target, GCGLint level, GCGLenum internalformat, GCGLint x, GCGLint y, GCGLsizei width, GCGLsizei height, GCGLint border) |
1002 |
void GraphicsContextGLANGLE::copyTexImage2D(GCGLenum target, GCGLint level, GCGLenum internalformat, GCGLint x, GCGLint y, GCGLsizei width, GCGLsizei height, GCGLint border) |
| 1009 |
{ |
1003 |
{ |
| 1010 |
if (!makeContextCurrent()) |
1004 |
if (!makeContextCurrent()) |
| 1011 |
return; |
1005 |
return; |
|
Lines 1022-1028
void GraphicsContextGLOpenGL::copyTexImage2D(GCGLenum target, GCGLint level, GCG
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec59
|
| 1022 |
gl::BindFramebuffer(framebufferTarget, m_multisampleFBO); |
1016 |
gl::BindFramebuffer(framebufferTarget, m_multisampleFBO); |
| 1023 |
} |
1017 |
} |
| 1024 |
|
1018 |
|
| 1025 |
void GraphicsContextGLOpenGL::copyTexSubImage2D(GCGLenum target, GCGLint level, GCGLint xoffset, GCGLint yoffset, GCGLint x, GCGLint y, GCGLsizei width, GCGLsizei height) |
1019 |
void GraphicsContextGLANGLE::copyTexSubImage2D(GCGLenum target, GCGLint level, GCGLint xoffset, GCGLint yoffset, GCGLint x, GCGLint y, GCGLsizei width, GCGLsizei height) |
| 1026 |
{ |
1020 |
{ |
| 1027 |
if (!makeContextCurrent()) |
1021 |
if (!makeContextCurrent()) |
| 1028 |
return; |
1022 |
return; |
|
Lines 1039-1045
void GraphicsContextGLOpenGL::copyTexSubImage2D(GCGLenum target, GCGLint level,
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec60
|
| 1039 |
gl::BindFramebuffer(framebufferTarget, m_multisampleFBO); |
1033 |
gl::BindFramebuffer(framebufferTarget, m_multisampleFBO); |
| 1040 |
} |
1034 |
} |
| 1041 |
|
1035 |
|
| 1042 |
void GraphicsContextGLOpenGL::cullFace(GCGLenum mode) |
1036 |
void GraphicsContextGLANGLE::cullFace(GCGLenum mode) |
| 1043 |
{ |
1037 |
{ |
| 1044 |
if (!makeContextCurrent()) |
1038 |
if (!makeContextCurrent()) |
| 1045 |
return; |
1039 |
return; |
|
Lines 1047-1053
void GraphicsContextGLOpenGL::cullFace(GCGLenum mode)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec61
|
| 1047 |
gl::CullFace(mode); |
1041 |
gl::CullFace(mode); |
| 1048 |
} |
1042 |
} |
| 1049 |
|
1043 |
|
| 1050 |
void GraphicsContextGLOpenGL::depthFunc(GCGLenum func) |
1044 |
void GraphicsContextGLANGLE::depthFunc(GCGLenum func) |
| 1051 |
{ |
1045 |
{ |
| 1052 |
if (!makeContextCurrent()) |
1046 |
if (!makeContextCurrent()) |
| 1053 |
return; |
1047 |
return; |
|
Lines 1055-1061
void GraphicsContextGLOpenGL::depthFunc(GCGLenum func)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec62
|
| 1055 |
gl::DepthFunc(func); |
1049 |
gl::DepthFunc(func); |
| 1056 |
} |
1050 |
} |
| 1057 |
|
1051 |
|
| 1058 |
void GraphicsContextGLOpenGL::depthMask(GCGLboolean flag) |
1052 |
void GraphicsContextGLANGLE::depthMask(GCGLboolean flag) |
| 1059 |
{ |
1053 |
{ |
| 1060 |
if (!makeContextCurrent()) |
1054 |
if (!makeContextCurrent()) |
| 1061 |
return; |
1055 |
return; |
|
Lines 1063-1069
void GraphicsContextGLOpenGL::depthMask(GCGLboolean flag)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec63
|
| 1063 |
gl::DepthMask(flag); |
1057 |
gl::DepthMask(flag); |
| 1064 |
} |
1058 |
} |
| 1065 |
|
1059 |
|
| 1066 |
void GraphicsContextGLOpenGL::detachShader(PlatformGLObject program, PlatformGLObject shader) |
1060 |
void GraphicsContextGLANGLE::detachShader(PlatformGLObject program, PlatformGLObject shader) |
| 1067 |
{ |
1061 |
{ |
| 1068 |
ASSERT(program); |
1062 |
ASSERT(program); |
| 1069 |
ASSERT(shader); |
1063 |
ASSERT(shader); |
|
Lines 1073-1079
void GraphicsContextGLOpenGL::detachShader(PlatformGLObject program, PlatformGLO
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec64
|
| 1073 |
gl::DetachShader(program, shader); |
1067 |
gl::DetachShader(program, shader); |
| 1074 |
} |
1068 |
} |
| 1075 |
|
1069 |
|
| 1076 |
void GraphicsContextGLOpenGL::disable(GCGLenum cap) |
1070 |
void GraphicsContextGLANGLE::disable(GCGLenum cap) |
| 1077 |
{ |
1071 |
{ |
| 1078 |
if (!makeContextCurrent()) |
1072 |
if (!makeContextCurrent()) |
| 1079 |
return; |
1073 |
return; |
|
Lines 1081-1087
void GraphicsContextGLOpenGL::disable(GCGLenum cap)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec65
|
| 1081 |
gl::Disable(cap); |
1075 |
gl::Disable(cap); |
| 1082 |
} |
1076 |
} |
| 1083 |
|
1077 |
|
| 1084 |
void GraphicsContextGLOpenGL::disableVertexAttribArray(GCGLuint index) |
1078 |
void GraphicsContextGLANGLE::disableVertexAttribArray(GCGLuint index) |
| 1085 |
{ |
1079 |
{ |
| 1086 |
if (!makeContextCurrent()) |
1080 |
if (!makeContextCurrent()) |
| 1087 |
return; |
1081 |
return; |
|
Lines 1089-1095
void GraphicsContextGLOpenGL::disableVertexAttribArray(GCGLuint index)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec66
|
| 1089 |
gl::DisableVertexAttribArray(index); |
1083 |
gl::DisableVertexAttribArray(index); |
| 1090 |
} |
1084 |
} |
| 1091 |
|
1085 |
|
| 1092 |
void GraphicsContextGLOpenGL::drawArrays(GCGLenum mode, GCGLint first, GCGLsizei count) |
1086 |
void GraphicsContextGLANGLE::drawArrays(GCGLenum mode, GCGLint first, GCGLsizei count) |
| 1093 |
{ |
1087 |
{ |
| 1094 |
if (!makeContextCurrent()) |
1088 |
if (!makeContextCurrent()) |
| 1095 |
return; |
1089 |
return; |
|
Lines 1098-1104
void GraphicsContextGLOpenGL::drawArrays(GCGLenum mode, GCGLint first, GCGLsizei
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec67
|
| 1098 |
checkGPUStatus(); |
1092 |
checkGPUStatus(); |
| 1099 |
} |
1093 |
} |
| 1100 |
|
1094 |
|
| 1101 |
void GraphicsContextGLOpenGL::drawElements(GCGLenum mode, GCGLsizei count, GCGLenum type, GCGLintptr offset) |
1095 |
void GraphicsContextGLANGLE::drawElements(GCGLenum mode, GCGLsizei count, GCGLenum type, GCGLintptr offset) |
| 1102 |
{ |
1096 |
{ |
| 1103 |
if (!makeContextCurrent()) |
1097 |
if (!makeContextCurrent()) |
| 1104 |
return; |
1098 |
return; |
|
Lines 1107-1113
void GraphicsContextGLOpenGL::drawElements(GCGLenum mode, GCGLsizei count, GCGLe
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec68
|
| 1107 |
checkGPUStatus(); |
1101 |
checkGPUStatus(); |
| 1108 |
} |
1102 |
} |
| 1109 |
|
1103 |
|
| 1110 |
void GraphicsContextGLOpenGL::enable(GCGLenum cap) |
1104 |
void GraphicsContextGLANGLE::enable(GCGLenum cap) |
| 1111 |
{ |
1105 |
{ |
| 1112 |
if (!makeContextCurrent()) |
1106 |
if (!makeContextCurrent()) |
| 1113 |
return; |
1107 |
return; |
|
Lines 1115-1121
void GraphicsContextGLOpenGL::enable(GCGLenum cap)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec69
|
| 1115 |
gl::Enable(cap); |
1109 |
gl::Enable(cap); |
| 1116 |
} |
1110 |
} |
| 1117 |
|
1111 |
|
| 1118 |
void GraphicsContextGLOpenGL::enableVertexAttribArray(GCGLuint index) |
1112 |
void GraphicsContextGLANGLE::enableVertexAttribArray(GCGLuint index) |
| 1119 |
{ |
1113 |
{ |
| 1120 |
if (!makeContextCurrent()) |
1114 |
if (!makeContextCurrent()) |
| 1121 |
return; |
1115 |
return; |
|
Lines 1123-1129
void GraphicsContextGLOpenGL::enableVertexAttribArray(GCGLuint index)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec70
|
| 1123 |
gl::EnableVertexAttribArray(index); |
1117 |
gl::EnableVertexAttribArray(index); |
| 1124 |
} |
1118 |
} |
| 1125 |
|
1119 |
|
| 1126 |
void GraphicsContextGLOpenGL::finish() |
1120 |
void GraphicsContextGLANGLE::finish() |
| 1127 |
{ |
1121 |
{ |
| 1128 |
if (!makeContextCurrent()) |
1122 |
if (!makeContextCurrent()) |
| 1129 |
return; |
1123 |
return; |
|
Lines 1131-1137
void GraphicsContextGLOpenGL::finish()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec71
|
| 1131 |
gl::Finish(); |
1125 |
gl::Finish(); |
| 1132 |
} |
1126 |
} |
| 1133 |
|
1127 |
|
| 1134 |
void GraphicsContextGLOpenGL::flush() |
1128 |
void GraphicsContextGLANGLE::flush() |
| 1135 |
{ |
1129 |
{ |
| 1136 |
if (!makeContextCurrent()) |
1130 |
if (!makeContextCurrent()) |
| 1137 |
return; |
1131 |
return; |
|
Lines 1139-1145
void GraphicsContextGLOpenGL::flush()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec72
|
| 1139 |
gl::Flush(); |
1133 |
gl::Flush(); |
| 1140 |
} |
1134 |
} |
| 1141 |
|
1135 |
|
| 1142 |
void GraphicsContextGLOpenGL::framebufferRenderbuffer(GCGLenum target, GCGLenum attachment, GCGLenum renderbuffertarget, PlatformGLObject buffer) |
1136 |
void GraphicsContextGLANGLE::framebufferRenderbuffer(GCGLenum target, GCGLenum attachment, GCGLenum renderbuffertarget, PlatformGLObject buffer) |
| 1143 |
{ |
1137 |
{ |
| 1144 |
if (!makeContextCurrent()) |
1138 |
if (!makeContextCurrent()) |
| 1145 |
return; |
1139 |
return; |
|
Lines 1147-1153
void GraphicsContextGLOpenGL::framebufferRenderbuffer(GCGLenum target, GCGLenum
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec73
|
| 1147 |
gl::FramebufferRenderbuffer(target, attachment, renderbuffertarget, buffer); |
1141 |
gl::FramebufferRenderbuffer(target, attachment, renderbuffertarget, buffer); |
| 1148 |
} |
1142 |
} |
| 1149 |
|
1143 |
|
| 1150 |
void GraphicsContextGLOpenGL::framebufferTexture2D(GCGLenum target, GCGLenum attachment, GCGLenum textarget, PlatformGLObject texture, GCGLint level) |
1144 |
void GraphicsContextGLANGLE::framebufferTexture2D(GCGLenum target, GCGLenum attachment, GCGLenum textarget, PlatformGLObject texture, GCGLint level) |
| 1151 |
{ |
1145 |
{ |
| 1152 |
if (!makeContextCurrent()) |
1146 |
if (!makeContextCurrent()) |
| 1153 |
return; |
1147 |
return; |
|
Lines 1156-1162
void GraphicsContextGLOpenGL::framebufferTexture2D(GCGLenum target, GCGLenum att
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec74
|
| 1156 |
m_state.textureSeedCount.add(m_state.currentBoundTexture()); |
1150 |
m_state.textureSeedCount.add(m_state.currentBoundTexture()); |
| 1157 |
} |
1151 |
} |
| 1158 |
|
1152 |
|
| 1159 |
void GraphicsContextGLOpenGL::frontFace(GCGLenum mode) |
1153 |
void GraphicsContextGLANGLE::frontFace(GCGLenum mode) |
| 1160 |
{ |
1154 |
{ |
| 1161 |
if (!makeContextCurrent()) |
1155 |
if (!makeContextCurrent()) |
| 1162 |
return; |
1156 |
return; |
|
Lines 1164-1170
void GraphicsContextGLOpenGL::frontFace(GCGLenum mode)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec75
|
| 1164 |
gl::FrontFace(mode); |
1158 |
gl::FrontFace(mode); |
| 1165 |
} |
1159 |
} |
| 1166 |
|
1160 |
|
| 1167 |
void GraphicsContextGLOpenGL::generateMipmap(GCGLenum target) |
1161 |
void GraphicsContextGLANGLE::generateMipmap(GCGLenum target) |
| 1168 |
{ |
1162 |
{ |
| 1169 |
if (!makeContextCurrent()) |
1163 |
if (!makeContextCurrent()) |
| 1170 |
return; |
1164 |
return; |
|
Lines 1172-1178
void GraphicsContextGLOpenGL::generateMipmap(GCGLenum target)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec76
|
| 1172 |
gl::GenerateMipmap(target); |
1166 |
gl::GenerateMipmap(target); |
| 1173 |
} |
1167 |
} |
| 1174 |
|
1168 |
|
| 1175 |
bool GraphicsContextGLOpenGL::getActiveAttribImpl(PlatformGLObject program, GCGLuint index, ActiveInfo& info) |
1169 |
bool GraphicsContextGLANGLE::getActiveAttribImpl(PlatformGLObject program, GCGLuint index, ActiveInfo& info) |
| 1176 |
{ |
1170 |
{ |
| 1177 |
if (!program) { |
1171 |
if (!program) { |
| 1178 |
synthesizeGLError(INVALID_VALUE); |
1172 |
synthesizeGLError(INVALID_VALUE); |
|
Lines 1197-1208
bool GraphicsContextGLOpenGL::getActiveAttribImpl(PlatformGLObject program, GCGL
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec77
|
| 1197 |
return true; |
1191 |
return true; |
| 1198 |
} |
1192 |
} |
| 1199 |
|
1193 |
|
| 1200 |
bool GraphicsContextGLOpenGL::getActiveAttrib(PlatformGLObject program, GCGLuint index, ActiveInfo& info) |
1194 |
bool GraphicsContextGLANGLE::getActiveAttrib(PlatformGLObject program, GCGLuint index, ActiveInfo& info) |
| 1201 |
{ |
1195 |
{ |
| 1202 |
return getActiveAttribImpl(program, index, info); |
1196 |
return getActiveAttribImpl(program, index, info); |
| 1203 |
} |
1197 |
} |
| 1204 |
|
1198 |
|
| 1205 |
bool GraphicsContextGLOpenGL::getActiveUniformImpl(PlatformGLObject program, GCGLuint index, ActiveInfo& info) |
1199 |
bool GraphicsContextGLANGLE::getActiveUniformImpl(PlatformGLObject program, GCGLuint index, ActiveInfo& info) |
| 1206 |
{ |
1200 |
{ |
| 1207 |
if (!program) { |
1201 |
if (!program) { |
| 1208 |
synthesizeGLError(INVALID_VALUE); |
1202 |
synthesizeGLError(INVALID_VALUE); |
|
Lines 1228-1239
bool GraphicsContextGLOpenGL::getActiveUniformImpl(PlatformGLObject program, GCG
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec78
|
| 1228 |
return true; |
1222 |
return true; |
| 1229 |
} |
1223 |
} |
| 1230 |
|
1224 |
|
| 1231 |
bool GraphicsContextGLOpenGL::getActiveUniform(PlatformGLObject program, GCGLuint index, ActiveInfo& info) |
1225 |
bool GraphicsContextGLANGLE::getActiveUniform(PlatformGLObject program, GCGLuint index, ActiveInfo& info) |
| 1232 |
{ |
1226 |
{ |
| 1233 |
return getActiveUniformImpl(program, index, info); |
1227 |
return getActiveUniformImpl(program, index, info); |
| 1234 |
} |
1228 |
} |
| 1235 |
|
1229 |
|
| 1236 |
void GraphicsContextGLOpenGL::getAttachedShaders(PlatformGLObject program, GCGLsizei maxCount, GCGLsizei* count, PlatformGLObject* shaders) |
1230 |
void GraphicsContextGLANGLE::getAttachedShaders(PlatformGLObject program, GCGLsizei maxCount, GCGLsizei* count, PlatformGLObject* shaders) |
| 1237 |
{ |
1231 |
{ |
| 1238 |
if (!program) { |
1232 |
if (!program) { |
| 1239 |
synthesizeGLError(INVALID_VALUE); |
1233 |
synthesizeGLError(INVALID_VALUE); |
|
Lines 1245-1251
void GraphicsContextGLOpenGL::getAttachedShaders(PlatformGLObject program, GCGLs
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec79
|
| 1245 |
gl::GetAttachedShaders(program, maxCount, count, shaders); |
1239 |
gl::GetAttachedShaders(program, maxCount, count, shaders); |
| 1246 |
} |
1240 |
} |
| 1247 |
|
1241 |
|
| 1248 |
int GraphicsContextGLOpenGL::getAttribLocation(PlatformGLObject program, const String& name) |
1242 |
int GraphicsContextGLANGLE::getAttribLocation(PlatformGLObject program, const String& name) |
| 1249 |
{ |
1243 |
{ |
| 1250 |
if (!program) |
1244 |
if (!program) |
| 1251 |
return -1; |
1245 |
return -1; |
|
Lines 1257-1268
int GraphicsContextGLOpenGL::getAttribLocation(PlatformGLObject program, const S
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec80
|
| 1257 |
return gl::GetAttribLocation(program, name.utf8().data()); |
1251 |
return gl::GetAttribLocation(program, name.utf8().data()); |
| 1258 |
} |
1252 |
} |
| 1259 |
|
1253 |
|
| 1260 |
int GraphicsContextGLOpenGL::getAttribLocationDirect(PlatformGLObject program, const String& name) |
1254 |
int GraphicsContextGLANGLE::getAttribLocationDirect(PlatformGLObject program, const String& name) |
| 1261 |
{ |
1255 |
{ |
| 1262 |
return getAttribLocation(program, name); |
1256 |
return getAttribLocation(program, name); |
| 1263 |
} |
1257 |
} |
| 1264 |
|
1258 |
|
| 1265 |
bool GraphicsContextGLOpenGL::moveErrorsToSyntheticErrorList() |
1259 |
bool GraphicsContextGLANGLE::moveErrorsToSyntheticErrorList() |
| 1266 |
{ |
1260 |
{ |
| 1267 |
if (!makeContextCurrent()) |
1261 |
if (!makeContextCurrent()) |
| 1268 |
return false; |
1262 |
return false; |
|
Lines 1283-1289
bool GraphicsContextGLOpenGL::moveErrorsToSyntheticErrorList()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec81
|
| 1283 |
return movedAnError; |
1277 |
return movedAnError; |
| 1284 |
} |
1278 |
} |
| 1285 |
|
1279 |
|
| 1286 |
GCGLenum GraphicsContextGLOpenGL::getError() |
1280 |
GCGLenum GraphicsContextGLANGLE::getError() |
| 1287 |
{ |
1281 |
{ |
| 1288 |
if (!m_syntheticErrors.isEmpty()) { |
1282 |
if (!m_syntheticErrors.isEmpty()) { |
| 1289 |
// Need to move the current errors to the synthetic error list in case |
1283 |
// Need to move the current errors to the synthetic error list in case |
|
Lines 1299-1305
GCGLenum GraphicsContextGLOpenGL::getError()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec82
|
| 1299 |
return gl::GetError(); |
1293 |
return gl::GetError(); |
| 1300 |
} |
1294 |
} |
| 1301 |
|
1295 |
|
| 1302 |
String GraphicsContextGLOpenGL::getString(GCGLenum name) |
1296 |
String GraphicsContextGLANGLE::getString(GCGLenum name) |
| 1303 |
{ |
1297 |
{ |
| 1304 |
if (!makeContextCurrent()) |
1298 |
if (!makeContextCurrent()) |
| 1305 |
return String(); |
1299 |
return String(); |
|
Lines 1307-1313
String GraphicsContextGLOpenGL::getString(GCGLenum name)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec83
|
| 1307 |
return String(reinterpret_cast<const char*>(gl::GetString(name))); |
1301 |
return String(reinterpret_cast<const char*>(gl::GetString(name))); |
| 1308 |
} |
1302 |
} |
| 1309 |
|
1303 |
|
| 1310 |
void GraphicsContextGLOpenGL::hint(GCGLenum target, GCGLenum mode) |
1304 |
void GraphicsContextGLANGLE::hint(GCGLenum target, GCGLenum mode) |
| 1311 |
{ |
1305 |
{ |
| 1312 |
if (!makeContextCurrent()) |
1306 |
if (!makeContextCurrent()) |
| 1313 |
return; |
1307 |
return; |
|
Lines 1315-1321
void GraphicsContextGLOpenGL::hint(GCGLenum target, GCGLenum mode)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec84
|
| 1315 |
gl::Hint(target, mode); |
1309 |
gl::Hint(target, mode); |
| 1316 |
} |
1310 |
} |
| 1317 |
|
1311 |
|
| 1318 |
GCGLboolean GraphicsContextGLOpenGL::isBuffer(PlatformGLObject buffer) |
1312 |
GCGLboolean GraphicsContextGLANGLE::isBuffer(PlatformGLObject buffer) |
| 1319 |
{ |
1313 |
{ |
| 1320 |
if (!buffer) |
1314 |
if (!buffer) |
| 1321 |
return GL_FALSE; |
1315 |
return GL_FALSE; |
|
Lines 1326-1332
GCGLboolean GraphicsContextGLOpenGL::isBuffer(PlatformGLObject buffer)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec85
|
| 1326 |
return gl::IsBuffer(buffer); |
1320 |
return gl::IsBuffer(buffer); |
| 1327 |
} |
1321 |
} |
| 1328 |
|
1322 |
|
| 1329 |
GCGLboolean GraphicsContextGLOpenGL::isEnabled(GCGLenum cap) |
1323 |
GCGLboolean GraphicsContextGLANGLE::isEnabled(GCGLenum cap) |
| 1330 |
{ |
1324 |
{ |
| 1331 |
if (!makeContextCurrent()) |
1325 |
if (!makeContextCurrent()) |
| 1332 |
return GL_FALSE; |
1326 |
return GL_FALSE; |
|
Lines 1334-1340
GCGLboolean GraphicsContextGLOpenGL::isEnabled(GCGLenum cap)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec86
|
| 1334 |
return gl::IsEnabled(cap); |
1328 |
return gl::IsEnabled(cap); |
| 1335 |
} |
1329 |
} |
| 1336 |
|
1330 |
|
| 1337 |
GCGLboolean GraphicsContextGLOpenGL::isFramebuffer(PlatformGLObject framebuffer) |
1331 |
GCGLboolean GraphicsContextGLANGLE::isFramebuffer(PlatformGLObject framebuffer) |
| 1338 |
{ |
1332 |
{ |
| 1339 |
if (!framebuffer) |
1333 |
if (!framebuffer) |
| 1340 |
return GL_FALSE; |
1334 |
return GL_FALSE; |
|
Lines 1345-1351
GCGLboolean GraphicsContextGLOpenGL::isFramebuffer(PlatformGLObject framebuffer)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec87
|
| 1345 |
return gl::IsFramebuffer(framebuffer); |
1339 |
return gl::IsFramebuffer(framebuffer); |
| 1346 |
} |
1340 |
} |
| 1347 |
|
1341 |
|
| 1348 |
GCGLboolean GraphicsContextGLOpenGL::isProgram(PlatformGLObject program) |
1342 |
GCGLboolean GraphicsContextGLANGLE::isProgram(PlatformGLObject program) |
| 1349 |
{ |
1343 |
{ |
| 1350 |
if (!program) |
1344 |
if (!program) |
| 1351 |
return GL_FALSE; |
1345 |
return GL_FALSE; |
|
Lines 1356-1362
GCGLboolean GraphicsContextGLOpenGL::isProgram(PlatformGLObject program)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec88
|
| 1356 |
return gl::IsProgram(program); |
1350 |
return gl::IsProgram(program); |
| 1357 |
} |
1351 |
} |
| 1358 |
|
1352 |
|
| 1359 |
GCGLboolean GraphicsContextGLOpenGL::isRenderbuffer(PlatformGLObject renderbuffer) |
1353 |
GCGLboolean GraphicsContextGLANGLE::isRenderbuffer(PlatformGLObject renderbuffer) |
| 1360 |
{ |
1354 |
{ |
| 1361 |
if (!renderbuffer) |
1355 |
if (!renderbuffer) |
| 1362 |
return GL_FALSE; |
1356 |
return GL_FALSE; |
|
Lines 1367-1373
GCGLboolean GraphicsContextGLOpenGL::isRenderbuffer(PlatformGLObject renderbuffe
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec89
|
| 1367 |
return gl::IsRenderbuffer(renderbuffer); |
1361 |
return gl::IsRenderbuffer(renderbuffer); |
| 1368 |
} |
1362 |
} |
| 1369 |
|
1363 |
|
| 1370 |
GCGLboolean GraphicsContextGLOpenGL::isShader(PlatformGLObject shader) |
1364 |
GCGLboolean GraphicsContextGLANGLE::isShader(PlatformGLObject shader) |
| 1371 |
{ |
1365 |
{ |
| 1372 |
if (!shader) |
1366 |
if (!shader) |
| 1373 |
return GL_FALSE; |
1367 |
return GL_FALSE; |
|
Lines 1378-1384
GCGLboolean GraphicsContextGLOpenGL::isShader(PlatformGLObject shader)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec90
|
| 1378 |
return gl::IsShader(shader); |
1372 |
return gl::IsShader(shader); |
| 1379 |
} |
1373 |
} |
| 1380 |
|
1374 |
|
| 1381 |
GCGLboolean GraphicsContextGLOpenGL::isTexture(PlatformGLObject texture) |
1375 |
GCGLboolean GraphicsContextGLANGLE::isTexture(PlatformGLObject texture) |
| 1382 |
{ |
1376 |
{ |
| 1383 |
if (!texture) |
1377 |
if (!texture) |
| 1384 |
return GL_FALSE; |
1378 |
return GL_FALSE; |
|
Lines 1389-1395
GCGLboolean GraphicsContextGLOpenGL::isTexture(PlatformGLObject texture)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec91
|
| 1389 |
return gl::IsTexture(texture); |
1383 |
return gl::IsTexture(texture); |
| 1390 |
} |
1384 |
} |
| 1391 |
|
1385 |
|
| 1392 |
void GraphicsContextGLOpenGL::lineWidth(GCGLfloat width) |
1386 |
void GraphicsContextGLANGLE::lineWidth(GCGLfloat width) |
| 1393 |
{ |
1387 |
{ |
| 1394 |
if (!makeContextCurrent()) |
1388 |
if (!makeContextCurrent()) |
| 1395 |
return; |
1389 |
return; |
|
Lines 1397-1403
void GraphicsContextGLOpenGL::lineWidth(GCGLfloat width)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec92
|
| 1397 |
gl::LineWidth(width); |
1391 |
gl::LineWidth(width); |
| 1398 |
} |
1392 |
} |
| 1399 |
|
1393 |
|
| 1400 |
void GraphicsContextGLOpenGL::linkProgram(PlatformGLObject program) |
1394 |
void GraphicsContextGLANGLE::linkProgram(PlatformGLObject program) |
| 1401 |
{ |
1395 |
{ |
| 1402 |
ASSERT(program); |
1396 |
ASSERT(program); |
| 1403 |
if (!makeContextCurrent()) |
1397 |
if (!makeContextCurrent()) |
|
Lines 1406-1412
void GraphicsContextGLOpenGL::linkProgram(PlatformGLObject program)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec93
|
| 1406 |
gl::LinkProgram(program); |
1400 |
gl::LinkProgram(program); |
| 1407 |
} |
1401 |
} |
| 1408 |
|
1402 |
|
| 1409 |
void GraphicsContextGLOpenGL::pixelStorei(GCGLenum pname, GCGLint param) |
1403 |
void GraphicsContextGLANGLE::pixelStorei(GCGLenum pname, GCGLint param) |
| 1410 |
{ |
1404 |
{ |
| 1411 |
if (!makeContextCurrent()) |
1405 |
if (!makeContextCurrent()) |
| 1412 |
return; |
1406 |
return; |
|
Lines 1414-1420
void GraphicsContextGLOpenGL::pixelStorei(GCGLenum pname, GCGLint param)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec94
|
| 1414 |
gl::PixelStorei(pname, param); |
1408 |
gl::PixelStorei(pname, param); |
| 1415 |
} |
1409 |
} |
| 1416 |
|
1410 |
|
| 1417 |
void GraphicsContextGLOpenGL::polygonOffset(GCGLfloat factor, GCGLfloat units) |
1411 |
void GraphicsContextGLANGLE::polygonOffset(GCGLfloat factor, GCGLfloat units) |
| 1418 |
{ |
1412 |
{ |
| 1419 |
if (!makeContextCurrent()) |
1413 |
if (!makeContextCurrent()) |
| 1420 |
return; |
1414 |
return; |
|
Lines 1422-1428
void GraphicsContextGLOpenGL::polygonOffset(GCGLfloat factor, GCGLfloat units)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec95
|
| 1422 |
gl::PolygonOffset(factor, units); |
1416 |
gl::PolygonOffset(factor, units); |
| 1423 |
} |
1417 |
} |
| 1424 |
|
1418 |
|
| 1425 |
void GraphicsContextGLOpenGL::sampleCoverage(GCGLclampf value, GCGLboolean invert) |
1419 |
void GraphicsContextGLANGLE::sampleCoverage(GCGLclampf value, GCGLboolean invert) |
| 1426 |
{ |
1420 |
{ |
| 1427 |
if (!makeContextCurrent()) |
1421 |
if (!makeContextCurrent()) |
| 1428 |
return; |
1422 |
return; |
|
Lines 1430-1436
void GraphicsContextGLOpenGL::sampleCoverage(GCGLclampf value, GCGLboolean inver
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec96
|
| 1430 |
gl::SampleCoverage(value, invert); |
1424 |
gl::SampleCoverage(value, invert); |
| 1431 |
} |
1425 |
} |
| 1432 |
|
1426 |
|
| 1433 |
void GraphicsContextGLOpenGL::scissor(GCGLint x, GCGLint y, GCGLsizei width, GCGLsizei height) |
1427 |
void GraphicsContextGLANGLE::scissor(GCGLint x, GCGLint y, GCGLsizei width, GCGLsizei height) |
| 1434 |
{ |
1428 |
{ |
| 1435 |
if (!makeContextCurrent()) |
1429 |
if (!makeContextCurrent()) |
| 1436 |
return; |
1430 |
return; |
|
Lines 1438-1444
void GraphicsContextGLOpenGL::scissor(GCGLint x, GCGLint y, GCGLsizei width, GCG
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec97
|
| 1438 |
gl::Scissor(x, y, width, height); |
1432 |
gl::Scissor(x, y, width, height); |
| 1439 |
} |
1433 |
} |
| 1440 |
|
1434 |
|
| 1441 |
void GraphicsContextGLOpenGL::shaderSource(PlatformGLObject shader, const String& string) |
1435 |
void GraphicsContextGLANGLE::shaderSource(PlatformGLObject shader, const String& string) |
| 1442 |
{ |
1436 |
{ |
| 1443 |
ASSERT(shader); |
1437 |
ASSERT(shader); |
| 1444 |
|
1438 |
|
|
Lines 1451-1457
void GraphicsContextGLOpenGL::shaderSource(PlatformGLObject shader, const String
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec98
|
| 1451 |
gl::ShaderSource(shader, 1, &shaderSourcePtr, &shaderSourceLength); |
1445 |
gl::ShaderSource(shader, 1, &shaderSourcePtr, &shaderSourceLength); |
| 1452 |
} |
1446 |
} |
| 1453 |
|
1447 |
|
| 1454 |
void GraphicsContextGLOpenGL::stencilFunc(GCGLenum func, GCGLint ref, GCGLuint mask) |
1448 |
void GraphicsContextGLANGLE::stencilFunc(GCGLenum func, GCGLint ref, GCGLuint mask) |
| 1455 |
{ |
1449 |
{ |
| 1456 |
if (!makeContextCurrent()) |
1450 |
if (!makeContextCurrent()) |
| 1457 |
return; |
1451 |
return; |
|
Lines 1459-1465
void GraphicsContextGLOpenGL::stencilFunc(GCGLenum func, GCGLint ref, GCGLuint m
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec99
|
| 1459 |
gl::StencilFunc(func, ref, mask); |
1453 |
gl::StencilFunc(func, ref, mask); |
| 1460 |
} |
1454 |
} |
| 1461 |
|
1455 |
|
| 1462 |
void GraphicsContextGLOpenGL::stencilFuncSeparate(GCGLenum face, GCGLenum func, GCGLint ref, GCGLuint mask) |
1456 |
void GraphicsContextGLANGLE::stencilFuncSeparate(GCGLenum face, GCGLenum func, GCGLint ref, GCGLuint mask) |
| 1463 |
{ |
1457 |
{ |
| 1464 |
if (!makeContextCurrent()) |
1458 |
if (!makeContextCurrent()) |
| 1465 |
return; |
1459 |
return; |
|
Lines 1467-1473
void GraphicsContextGLOpenGL::stencilFuncSeparate(GCGLenum face, GCGLenum func,
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec100
|
| 1467 |
gl::StencilFuncSeparate(face, func, ref, mask); |
1461 |
gl::StencilFuncSeparate(face, func, ref, mask); |
| 1468 |
} |
1462 |
} |
| 1469 |
|
1463 |
|
| 1470 |
void GraphicsContextGLOpenGL::stencilMask(GCGLuint mask) |
1464 |
void GraphicsContextGLANGLE::stencilMask(GCGLuint mask) |
| 1471 |
{ |
1465 |
{ |
| 1472 |
if (!makeContextCurrent()) |
1466 |
if (!makeContextCurrent()) |
| 1473 |
return; |
1467 |
return; |
|
Lines 1475-1481
void GraphicsContextGLOpenGL::stencilMask(GCGLuint mask)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec101
|
| 1475 |
gl::StencilMask(mask); |
1469 |
gl::StencilMask(mask); |
| 1476 |
} |
1470 |
} |
| 1477 |
|
1471 |
|
| 1478 |
void GraphicsContextGLOpenGL::stencilMaskSeparate(GCGLenum face, GCGLuint mask) |
1472 |
void GraphicsContextGLANGLE::stencilMaskSeparate(GCGLenum face, GCGLuint mask) |
| 1479 |
{ |
1473 |
{ |
| 1480 |
if (!makeContextCurrent()) |
1474 |
if (!makeContextCurrent()) |
| 1481 |
return; |
1475 |
return; |
|
Lines 1483-1489
void GraphicsContextGLOpenGL::stencilMaskSeparate(GCGLenum face, GCGLuint mask)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec102
|
| 1483 |
gl::StencilMaskSeparate(face, mask); |
1477 |
gl::StencilMaskSeparate(face, mask); |
| 1484 |
} |
1478 |
} |
| 1485 |
|
1479 |
|
| 1486 |
void GraphicsContextGLOpenGL::stencilOp(GCGLenum fail, GCGLenum zfail, GCGLenum zpass) |
1480 |
void GraphicsContextGLANGLE::stencilOp(GCGLenum fail, GCGLenum zfail, GCGLenum zpass) |
| 1487 |
{ |
1481 |
{ |
| 1488 |
if (!makeContextCurrent()) |
1482 |
if (!makeContextCurrent()) |
| 1489 |
return; |
1483 |
return; |
|
Lines 1491-1497
void GraphicsContextGLOpenGL::stencilOp(GCGLenum fail, GCGLenum zfail, GCGLenum
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec103
|
| 1491 |
gl::StencilOp(fail, zfail, zpass); |
1485 |
gl::StencilOp(fail, zfail, zpass); |
| 1492 |
} |
1486 |
} |
| 1493 |
|
1487 |
|
| 1494 |
void GraphicsContextGLOpenGL::stencilOpSeparate(GCGLenum face, GCGLenum fail, GCGLenum zfail, GCGLenum zpass) |
1488 |
void GraphicsContextGLANGLE::stencilOpSeparate(GCGLenum face, GCGLenum fail, GCGLenum zfail, GCGLenum zpass) |
| 1495 |
{ |
1489 |
{ |
| 1496 |
if (!makeContextCurrent()) |
1490 |
if (!makeContextCurrent()) |
| 1497 |
return; |
1491 |
return; |
|
Lines 1499-1505
void GraphicsContextGLOpenGL::stencilOpSeparate(GCGLenum face, GCGLenum fail, GC
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec104
|
| 1499 |
gl::StencilOpSeparate(face, fail, zfail, zpass); |
1493 |
gl::StencilOpSeparate(face, fail, zfail, zpass); |
| 1500 |
} |
1494 |
} |
| 1501 |
|
1495 |
|
| 1502 |
void GraphicsContextGLOpenGL::texParameterf(GCGLenum target, GCGLenum pname, GCGLfloat value) |
1496 |
void GraphicsContextGLANGLE::texParameterf(GCGLenum target, GCGLenum pname, GCGLfloat value) |
| 1503 |
{ |
1497 |
{ |
| 1504 |
if (!makeContextCurrent()) |
1498 |
if (!makeContextCurrent()) |
| 1505 |
return; |
1499 |
return; |
|
Lines 1507-1513
void GraphicsContextGLOpenGL::texParameterf(GCGLenum target, GCGLenum pname, GCG
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec105
|
| 1507 |
gl::TexParameterf(target, pname, value); |
1501 |
gl::TexParameterf(target, pname, value); |
| 1508 |
} |
1502 |
} |
| 1509 |
|
1503 |
|
| 1510 |
void GraphicsContextGLOpenGL::texParameteri(GCGLenum target, GCGLenum pname, GCGLint value) |
1504 |
void GraphicsContextGLANGLE::texParameteri(GCGLenum target, GCGLenum pname, GCGLint value) |
| 1511 |
{ |
1505 |
{ |
| 1512 |
if (!makeContextCurrent()) |
1506 |
if (!makeContextCurrent()) |
| 1513 |
return; |
1507 |
return; |
|
Lines 1515-1521
void GraphicsContextGLOpenGL::texParameteri(GCGLenum target, GCGLenum pname, GCG
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec106
|
| 1515 |
gl::TexParameteri(target, pname, value); |
1509 |
gl::TexParameteri(target, pname, value); |
| 1516 |
} |
1510 |
} |
| 1517 |
|
1511 |
|
| 1518 |
void GraphicsContextGLOpenGL::uniform1f(GCGLint location, GCGLfloat v0) |
1512 |
void GraphicsContextGLANGLE::uniform1f(GCGLint location, GCGLfloat v0) |
| 1519 |
{ |
1513 |
{ |
| 1520 |
if (!makeContextCurrent()) |
1514 |
if (!makeContextCurrent()) |
| 1521 |
return; |
1515 |
return; |
|
Lines 1523-1529
void GraphicsContextGLOpenGL::uniform1f(GCGLint location, GCGLfloat v0)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec107
|
| 1523 |
gl::Uniform1f(location, v0); |
1517 |
gl::Uniform1f(location, v0); |
| 1524 |
} |
1518 |
} |
| 1525 |
|
1519 |
|
| 1526 |
void GraphicsContextGLOpenGL::uniform1fv(GCGLint location, GCGLSpan<const GCGLfloat> array) |
1520 |
void GraphicsContextGLANGLE::uniform1fv(GCGLint location, GCGLSpan<const GCGLfloat> array) |
| 1527 |
{ |
1521 |
{ |
| 1528 |
if (!makeContextCurrent()) |
1522 |
if (!makeContextCurrent()) |
| 1529 |
return; |
1523 |
return; |
|
Lines 1531-1537
void GraphicsContextGLOpenGL::uniform1fv(GCGLint location, GCGLSpan<const GCGLfl
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec108
|
| 1531 |
gl::Uniform1fv(location, array.bufSize, array.data); |
1525 |
gl::Uniform1fv(location, array.bufSize, array.data); |
| 1532 |
} |
1526 |
} |
| 1533 |
|
1527 |
|
| 1534 |
void GraphicsContextGLOpenGL::uniform2f(GCGLint location, GCGLfloat v0, GCGLfloat v1) |
1528 |
void GraphicsContextGLANGLE::uniform2f(GCGLint location, GCGLfloat v0, GCGLfloat v1) |
| 1535 |
{ |
1529 |
{ |
| 1536 |
if (!makeContextCurrent()) |
1530 |
if (!makeContextCurrent()) |
| 1537 |
return; |
1531 |
return; |
|
Lines 1539-1545
void GraphicsContextGLOpenGL::uniform2f(GCGLint location, GCGLfloat v0, GCGLfloa
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec109
|
| 1539 |
gl::Uniform2f(location, v0, v1); |
1533 |
gl::Uniform2f(location, v0, v1); |
| 1540 |
} |
1534 |
} |
| 1541 |
|
1535 |
|
| 1542 |
void GraphicsContextGLOpenGL::uniform2fv(GCGLint location, GCGLSpan<const GCGLfloat> array) |
1536 |
void GraphicsContextGLANGLE::uniform2fv(GCGLint location, GCGLSpan<const GCGLfloat> array) |
| 1543 |
{ |
1537 |
{ |
| 1544 |
ASSERT(!(array.bufSize % 2)); |
1538 |
ASSERT(!(array.bufSize % 2)); |
| 1545 |
if (!makeContextCurrent()) |
1539 |
if (!makeContextCurrent()) |
|
Lines 1548-1554
void GraphicsContextGLOpenGL::uniform2fv(GCGLint location, GCGLSpan<const GCGLfl
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec110
|
| 1548 |
gl::Uniform2fv(location, array.bufSize / 2, array.data); |
1542 |
gl::Uniform2fv(location, array.bufSize / 2, array.data); |
| 1549 |
} |
1543 |
} |
| 1550 |
|
1544 |
|
| 1551 |
void GraphicsContextGLOpenGL::uniform3f(GCGLint location, GCGLfloat v0, GCGLfloat v1, GCGLfloat v2) |
1545 |
void GraphicsContextGLANGLE::uniform3f(GCGLint location, GCGLfloat v0, GCGLfloat v1, GCGLfloat v2) |
| 1552 |
{ |
1546 |
{ |
| 1553 |
if (!makeContextCurrent()) |
1547 |
if (!makeContextCurrent()) |
| 1554 |
return; |
1548 |
return; |
|
Lines 1556-1562
void GraphicsContextGLOpenGL::uniform3f(GCGLint location, GCGLfloat v0, GCGLfloa
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec111
|
| 1556 |
gl::Uniform3f(location, v0, v1, v2); |
1550 |
gl::Uniform3f(location, v0, v1, v2); |
| 1557 |
} |
1551 |
} |
| 1558 |
|
1552 |
|
| 1559 |
void GraphicsContextGLOpenGL::uniform3fv(GCGLint location, GCGLSpan<const GCGLfloat> array) |
1553 |
void GraphicsContextGLANGLE::uniform3fv(GCGLint location, GCGLSpan<const GCGLfloat> array) |
| 1560 |
{ |
1554 |
{ |
| 1561 |
ASSERT(!(array.bufSize % 3)); |
1555 |
ASSERT(!(array.bufSize % 3)); |
| 1562 |
if (!makeContextCurrent()) |
1556 |
if (!makeContextCurrent()) |
|
Lines 1565-1571
void GraphicsContextGLOpenGL::uniform3fv(GCGLint location, GCGLSpan<const GCGLfl
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec112
|
| 1565 |
gl::Uniform3fv(location, array.bufSize / 3, array.data); |
1559 |
gl::Uniform3fv(location, array.bufSize / 3, array.data); |
| 1566 |
} |
1560 |
} |
| 1567 |
|
1561 |
|
| 1568 |
void GraphicsContextGLOpenGL::uniform4f(GCGLint location, GCGLfloat v0, GCGLfloat v1, GCGLfloat v2, GCGLfloat v3) |
1562 |
void GraphicsContextGLANGLE::uniform4f(GCGLint location, GCGLfloat v0, GCGLfloat v1, GCGLfloat v2, GCGLfloat v3) |
| 1569 |
{ |
1563 |
{ |
| 1570 |
if (!makeContextCurrent()) |
1564 |
if (!makeContextCurrent()) |
| 1571 |
return; |
1565 |
return; |
|
Lines 1573-1579
void GraphicsContextGLOpenGL::uniform4f(GCGLint location, GCGLfloat v0, GCGLfloa
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec113
|
| 1573 |
gl::Uniform4f(location, v0, v1, v2, v3); |
1567 |
gl::Uniform4f(location, v0, v1, v2, v3); |
| 1574 |
} |
1568 |
} |
| 1575 |
|
1569 |
|
| 1576 |
void GraphicsContextGLOpenGL::uniform4fv(GCGLint location, GCGLSpan<const GCGLfloat> array) |
1570 |
void GraphicsContextGLANGLE::uniform4fv(GCGLint location, GCGLSpan<const GCGLfloat> array) |
| 1577 |
{ |
1571 |
{ |
| 1578 |
ASSERT(!(array.bufSize % 4)); |
1572 |
ASSERT(!(array.bufSize % 4)); |
| 1579 |
if (!makeContextCurrent()) |
1573 |
if (!makeContextCurrent()) |
|
Lines 1582-1588
void GraphicsContextGLOpenGL::uniform4fv(GCGLint location, GCGLSpan<const GCGLfl
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec114
|
| 1582 |
gl::Uniform4fv(location, array.bufSize / 4, array.data); |
1576 |
gl::Uniform4fv(location, array.bufSize / 4, array.data); |
| 1583 |
} |
1577 |
} |
| 1584 |
|
1578 |
|
| 1585 |
void GraphicsContextGLOpenGL::uniform1i(GCGLint location, GCGLint v0) |
1579 |
void GraphicsContextGLANGLE::uniform1i(GCGLint location, GCGLint v0) |
| 1586 |
{ |
1580 |
{ |
| 1587 |
if (!makeContextCurrent()) |
1581 |
if (!makeContextCurrent()) |
| 1588 |
return; |
1582 |
return; |
|
Lines 1590-1596
void GraphicsContextGLOpenGL::uniform1i(GCGLint location, GCGLint v0)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec115
|
| 1590 |
gl::Uniform1i(location, v0); |
1584 |
gl::Uniform1i(location, v0); |
| 1591 |
} |
1585 |
} |
| 1592 |
|
1586 |
|
| 1593 |
void GraphicsContextGLOpenGL::uniform1iv(GCGLint location, GCGLSpan<const GCGLint> array) |
1587 |
void GraphicsContextGLANGLE::uniform1iv(GCGLint location, GCGLSpan<const GCGLint> array) |
| 1594 |
{ |
1588 |
{ |
| 1595 |
if (!makeContextCurrent()) |
1589 |
if (!makeContextCurrent()) |
| 1596 |
return; |
1590 |
return; |
|
Lines 1598-1604
void GraphicsContextGLOpenGL::uniform1iv(GCGLint location, GCGLSpan<const GCGLin
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec116
|
| 1598 |
gl::Uniform1iv(location, array.bufSize, array.data); |
1592 |
gl::Uniform1iv(location, array.bufSize, array.data); |
| 1599 |
} |
1593 |
} |
| 1600 |
|
1594 |
|
| 1601 |
void GraphicsContextGLOpenGL::uniform2i(GCGLint location, GCGLint v0, GCGLint v1) |
1595 |
void GraphicsContextGLANGLE::uniform2i(GCGLint location, GCGLint v0, GCGLint v1) |
| 1602 |
{ |
1596 |
{ |
| 1603 |
if (!makeContextCurrent()) |
1597 |
if (!makeContextCurrent()) |
| 1604 |
return; |
1598 |
return; |
|
Lines 1606-1612
void GraphicsContextGLOpenGL::uniform2i(GCGLint location, GCGLint v0, GCGLint v1
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec117
|
| 1606 |
gl::Uniform2i(location, v0, v1); |
1600 |
gl::Uniform2i(location, v0, v1); |
| 1607 |
} |
1601 |
} |
| 1608 |
|
1602 |
|
| 1609 |
void GraphicsContextGLOpenGL::uniform2iv(GCGLint location, GCGLSpan<const GCGLint> array) |
1603 |
void GraphicsContextGLANGLE::uniform2iv(GCGLint location, GCGLSpan<const GCGLint> array) |
| 1610 |
{ |
1604 |
{ |
| 1611 |
ASSERT(!(array.bufSize % 2)); |
1605 |
ASSERT(!(array.bufSize % 2)); |
| 1612 |
if (!makeContextCurrent()) |
1606 |
if (!makeContextCurrent()) |
|
Lines 1615-1621
void GraphicsContextGLOpenGL::uniform2iv(GCGLint location, GCGLSpan<const GCGLin
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec118
|
| 1615 |
gl::Uniform2iv(location, array.bufSize / 2, array.data); |
1609 |
gl::Uniform2iv(location, array.bufSize / 2, array.data); |
| 1616 |
} |
1610 |
} |
| 1617 |
|
1611 |
|
| 1618 |
void GraphicsContextGLOpenGL::uniform3i(GCGLint location, GCGLint v0, GCGLint v1, GCGLint v2) |
1612 |
void GraphicsContextGLANGLE::uniform3i(GCGLint location, GCGLint v0, GCGLint v1, GCGLint v2) |
| 1619 |
{ |
1613 |
{ |
| 1620 |
if (!makeContextCurrent()) |
1614 |
if (!makeContextCurrent()) |
| 1621 |
return; |
1615 |
return; |
|
Lines 1623-1629
void GraphicsContextGLOpenGL::uniform3i(GCGLint location, GCGLint v0, GCGLint v1
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec119
|
| 1623 |
gl::Uniform3i(location, v0, v1, v2); |
1617 |
gl::Uniform3i(location, v0, v1, v2); |
| 1624 |
} |
1618 |
} |
| 1625 |
|
1619 |
|
| 1626 |
void GraphicsContextGLOpenGL::uniform3iv(GCGLint location, GCGLSpan<const GCGLint> array) |
1620 |
void GraphicsContextGLANGLE::uniform3iv(GCGLint location, GCGLSpan<const GCGLint> array) |
| 1627 |
{ |
1621 |
{ |
| 1628 |
ASSERT(!(array.bufSize % 3)); |
1622 |
ASSERT(!(array.bufSize % 3)); |
| 1629 |
if (!makeContextCurrent()) |
1623 |
if (!makeContextCurrent()) |
|
Lines 1632-1638
void GraphicsContextGLOpenGL::uniform3iv(GCGLint location, GCGLSpan<const GCGLin
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec120
|
| 1632 |
gl::Uniform3iv(location, array.bufSize / 3, array.data); |
1626 |
gl::Uniform3iv(location, array.bufSize / 3, array.data); |
| 1633 |
} |
1627 |
} |
| 1634 |
|
1628 |
|
| 1635 |
void GraphicsContextGLOpenGL::uniform4i(GCGLint location, GCGLint v0, GCGLint v1, GCGLint v2, GCGLint v3) |
1629 |
void GraphicsContextGLANGLE::uniform4i(GCGLint location, GCGLint v0, GCGLint v1, GCGLint v2, GCGLint v3) |
| 1636 |
{ |
1630 |
{ |
| 1637 |
if (!makeContextCurrent()) |
1631 |
if (!makeContextCurrent()) |
| 1638 |
return; |
1632 |
return; |
|
Lines 1640-1646
void GraphicsContextGLOpenGL::uniform4i(GCGLint location, GCGLint v0, GCGLint v1
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec121
|
| 1640 |
gl::Uniform4i(location, v0, v1, v2, v3); |
1634 |
gl::Uniform4i(location, v0, v1, v2, v3); |
| 1641 |
} |
1635 |
} |
| 1642 |
|
1636 |
|
| 1643 |
void GraphicsContextGLOpenGL::uniform4iv(GCGLint location, GCGLSpan<const GCGLint> array) |
1637 |
void GraphicsContextGLANGLE::uniform4iv(GCGLint location, GCGLSpan<const GCGLint> array) |
| 1644 |
{ |
1638 |
{ |
| 1645 |
ASSERT(!(array.bufSize % 4)); |
1639 |
ASSERT(!(array.bufSize % 4)); |
| 1646 |
if (!makeContextCurrent()) |
1640 |
if (!makeContextCurrent()) |
|
Lines 1649-1655
void GraphicsContextGLOpenGL::uniform4iv(GCGLint location, GCGLSpan<const GCGLin
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec122
|
| 1649 |
gl::Uniform4iv(location, array.bufSize / 4, array.data); |
1643 |
gl::Uniform4iv(location, array.bufSize / 4, array.data); |
| 1650 |
} |
1644 |
} |
| 1651 |
|
1645 |
|
| 1652 |
void GraphicsContextGLOpenGL::uniformMatrix2fv(GCGLint location, GCGLboolean transpose, GCGLSpan<const GCGLfloat> array) |
1646 |
void GraphicsContextGLANGLE::uniformMatrix2fv(GCGLint location, GCGLboolean transpose, GCGLSpan<const GCGLfloat> array) |
| 1653 |
{ |
1647 |
{ |
| 1654 |
if (!makeContextCurrent()) |
1648 |
if (!makeContextCurrent()) |
| 1655 |
return; |
1649 |
return; |
|
Lines 1657-1663
void GraphicsContextGLOpenGL::uniformMatrix2fv(GCGLint location, GCGLboolean tra
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec123
|
| 1657 |
gl::UniformMatrix2fv(location, array.bufSize / 4, transpose, array.data); |
1651 |
gl::UniformMatrix2fv(location, array.bufSize / 4, transpose, array.data); |
| 1658 |
} |
1652 |
} |
| 1659 |
|
1653 |
|
| 1660 |
void GraphicsContextGLOpenGL::uniformMatrix3fv(GCGLint location, GCGLboolean transpose, GCGLSpan<const GCGLfloat> array) |
1654 |
void GraphicsContextGLANGLE::uniformMatrix3fv(GCGLint location, GCGLboolean transpose, GCGLSpan<const GCGLfloat> array) |
| 1661 |
{ |
1655 |
{ |
| 1662 |
ASSERT(!(array.bufSize % 9)); |
1656 |
ASSERT(!(array.bufSize % 9)); |
| 1663 |
if (!makeContextCurrent()) |
1657 |
if (!makeContextCurrent()) |
|
Lines 1666-1672
void GraphicsContextGLOpenGL::uniformMatrix3fv(GCGLint location, GCGLboolean tra
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec124
|
| 1666 |
gl::UniformMatrix3fv(location, array.bufSize / 9, transpose, array.data); |
1660 |
gl::UniformMatrix3fv(location, array.bufSize / 9, transpose, array.data); |
| 1667 |
} |
1661 |
} |
| 1668 |
|
1662 |
|
| 1669 |
void GraphicsContextGLOpenGL::uniformMatrix4fv(GCGLint location, GCGLboolean transpose, GCGLSpan<const GCGLfloat> array) |
1663 |
void GraphicsContextGLANGLE::uniformMatrix4fv(GCGLint location, GCGLboolean transpose, GCGLSpan<const GCGLfloat> array) |
| 1670 |
{ |
1664 |
{ |
| 1671 |
ASSERT(!(array.bufSize % 16)); |
1665 |
ASSERT(!(array.bufSize % 16)); |
| 1672 |
if (!makeContextCurrent()) |
1666 |
if (!makeContextCurrent()) |
|
Lines 1675-1681
void GraphicsContextGLOpenGL::uniformMatrix4fv(GCGLint location, GCGLboolean tra
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec125
|
| 1675 |
gl::UniformMatrix4fv(location, array.bufSize / 16, transpose, array.data); |
1669 |
gl::UniformMatrix4fv(location, array.bufSize / 16, transpose, array.data); |
| 1676 |
} |
1670 |
} |
| 1677 |
|
1671 |
|
| 1678 |
void GraphicsContextGLOpenGL::useProgram(PlatformGLObject program) |
1672 |
void GraphicsContextGLANGLE::useProgram(PlatformGLObject program) |
| 1679 |
{ |
1673 |
{ |
| 1680 |
if (!makeContextCurrent()) |
1674 |
if (!makeContextCurrent()) |
| 1681 |
return; |
1675 |
return; |
|
Lines 1683-1689
void GraphicsContextGLOpenGL::useProgram(PlatformGLObject program)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec126
|
| 1683 |
gl::UseProgram(program); |
1677 |
gl::UseProgram(program); |
| 1684 |
} |
1678 |
} |
| 1685 |
|
1679 |
|
| 1686 |
void GraphicsContextGLOpenGL::validateProgram(PlatformGLObject program) |
1680 |
void GraphicsContextGLANGLE::validateProgram(PlatformGLObject program) |
| 1687 |
{ |
1681 |
{ |
| 1688 |
ASSERT(program); |
1682 |
ASSERT(program); |
| 1689 |
|
1683 |
|
|
Lines 1693-1699
void GraphicsContextGLOpenGL::validateProgram(PlatformGLObject program)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec127
|
| 1693 |
gl::ValidateProgram(program); |
1687 |
gl::ValidateProgram(program); |
| 1694 |
} |
1688 |
} |
| 1695 |
|
1689 |
|
| 1696 |
void GraphicsContextGLOpenGL::vertexAttrib1f(GCGLuint index, GCGLfloat v0) |
1690 |
void GraphicsContextGLANGLE::vertexAttrib1f(GCGLuint index, GCGLfloat v0) |
| 1697 |
{ |
1691 |
{ |
| 1698 |
if (!makeContextCurrent()) |
1692 |
if (!makeContextCurrent()) |
| 1699 |
return; |
1693 |
return; |
|
Lines 1701-1707
void GraphicsContextGLOpenGL::vertexAttrib1f(GCGLuint index, GCGLfloat v0)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec128
|
| 1701 |
gl::VertexAttrib1f(index, v0); |
1695 |
gl::VertexAttrib1f(index, v0); |
| 1702 |
} |
1696 |
} |
| 1703 |
|
1697 |
|
| 1704 |
void GraphicsContextGLOpenGL::vertexAttrib1fv(GCGLuint index, GCGLSpan<const GCGLfloat, 1> array) |
1698 |
void GraphicsContextGLANGLE::vertexAttrib1fv(GCGLuint index, GCGLSpan<const GCGLfloat, 1> array) |
| 1705 |
{ |
1699 |
{ |
| 1706 |
if (!makeContextCurrent()) |
1700 |
if (!makeContextCurrent()) |
| 1707 |
return; |
1701 |
return; |
|
Lines 1709-1715
void GraphicsContextGLOpenGL::vertexAttrib1fv(GCGLuint index, GCGLSpan<const GCG
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec129
|
| 1709 |
gl::VertexAttrib1fv(index, array.data); |
1703 |
gl::VertexAttrib1fv(index, array.data); |
| 1710 |
} |
1704 |
} |
| 1711 |
|
1705 |
|
| 1712 |
void GraphicsContextGLOpenGL::vertexAttrib2f(GCGLuint index, GCGLfloat v0, GCGLfloat v1) |
1706 |
void GraphicsContextGLANGLE::vertexAttrib2f(GCGLuint index, GCGLfloat v0, GCGLfloat v1) |
| 1713 |
{ |
1707 |
{ |
| 1714 |
if (!makeContextCurrent()) |
1708 |
if (!makeContextCurrent()) |
| 1715 |
return; |
1709 |
return; |
|
Lines 1717-1723
void GraphicsContextGLOpenGL::vertexAttrib2f(GCGLuint index, GCGLfloat v0, GCGLf
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec130
|
| 1717 |
gl::VertexAttrib2f(index, v0, v1); |
1711 |
gl::VertexAttrib2f(index, v0, v1); |
| 1718 |
} |
1712 |
} |
| 1719 |
|
1713 |
|
| 1720 |
void GraphicsContextGLOpenGL::vertexAttrib2fv(GCGLuint index, GCGLSpan<const GCGLfloat, 2> array) |
1714 |
void GraphicsContextGLANGLE::vertexAttrib2fv(GCGLuint index, GCGLSpan<const GCGLfloat, 2> array) |
| 1721 |
{ |
1715 |
{ |
| 1722 |
if (!makeContextCurrent()) |
1716 |
if (!makeContextCurrent()) |
| 1723 |
return; |
1717 |
return; |
|
Lines 1725-1731
void GraphicsContextGLOpenGL::vertexAttrib2fv(GCGLuint index, GCGLSpan<const GCG
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec131
|
| 1725 |
gl::VertexAttrib2fv(index, array.data); |
1719 |
gl::VertexAttrib2fv(index, array.data); |
| 1726 |
} |
1720 |
} |
| 1727 |
|
1721 |
|
| 1728 |
void GraphicsContextGLOpenGL::vertexAttrib3f(GCGLuint index, GCGLfloat v0, GCGLfloat v1, GCGLfloat v2) |
1722 |
void GraphicsContextGLANGLE::vertexAttrib3f(GCGLuint index, GCGLfloat v0, GCGLfloat v1, GCGLfloat v2) |
| 1729 |
{ |
1723 |
{ |
| 1730 |
if (!makeContextCurrent()) |
1724 |
if (!makeContextCurrent()) |
| 1731 |
return; |
1725 |
return; |
|
Lines 1733-1739
void GraphicsContextGLOpenGL::vertexAttrib3f(GCGLuint index, GCGLfloat v0, GCGLf
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec132
|
| 1733 |
gl::VertexAttrib3f(index, v0, v1, v2); |
1727 |
gl::VertexAttrib3f(index, v0, v1, v2); |
| 1734 |
} |
1728 |
} |
| 1735 |
|
1729 |
|
| 1736 |
void GraphicsContextGLOpenGL::vertexAttrib3fv(GCGLuint index, GCGLSpan<const GCGLfloat, 3> array) |
1730 |
void GraphicsContextGLANGLE::vertexAttrib3fv(GCGLuint index, GCGLSpan<const GCGLfloat, 3> array) |
| 1737 |
{ |
1731 |
{ |
| 1738 |
if (!makeContextCurrent()) |
1732 |
if (!makeContextCurrent()) |
| 1739 |
return; |
1733 |
return; |
|
Lines 1741-1747
void GraphicsContextGLOpenGL::vertexAttrib3fv(GCGLuint index, GCGLSpan<const GCG
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec133
|
| 1741 |
gl::VertexAttrib3fv(index, array.data); |
1735 |
gl::VertexAttrib3fv(index, array.data); |
| 1742 |
} |
1736 |
} |
| 1743 |
|
1737 |
|
| 1744 |
void GraphicsContextGLOpenGL::vertexAttrib4f(GCGLuint index, GCGLfloat v0, GCGLfloat v1, GCGLfloat v2, GCGLfloat v3) |
1738 |
void GraphicsContextGLANGLE::vertexAttrib4f(GCGLuint index, GCGLfloat v0, GCGLfloat v1, GCGLfloat v2, GCGLfloat v3) |
| 1745 |
{ |
1739 |
{ |
| 1746 |
if (!makeContextCurrent()) |
1740 |
if (!makeContextCurrent()) |
| 1747 |
return; |
1741 |
return; |
|
Lines 1749-1755
void GraphicsContextGLOpenGL::vertexAttrib4f(GCGLuint index, GCGLfloat v0, GCGLf
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec134
|
| 1749 |
gl::VertexAttrib4f(index, v0, v1, v2, v3); |
1743 |
gl::VertexAttrib4f(index, v0, v1, v2, v3); |
| 1750 |
} |
1744 |
} |
| 1751 |
|
1745 |
|
| 1752 |
void GraphicsContextGLOpenGL::vertexAttrib4fv(GCGLuint index, GCGLSpan<const GCGLfloat, 4> array) |
1746 |
void GraphicsContextGLANGLE::vertexAttrib4fv(GCGLuint index, GCGLSpan<const GCGLfloat, 4> array) |
| 1753 |
{ |
1747 |
{ |
| 1754 |
if (!makeContextCurrent()) |
1748 |
if (!makeContextCurrent()) |
| 1755 |
return; |
1749 |
return; |
|
Lines 1757-1763
void GraphicsContextGLOpenGL::vertexAttrib4fv(GCGLuint index, GCGLSpan<const GCG
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec135
|
| 1757 |
gl::VertexAttrib4fv(index, array.data); |
1751 |
gl::VertexAttrib4fv(index, array.data); |
| 1758 |
} |
1752 |
} |
| 1759 |
|
1753 |
|
| 1760 |
void GraphicsContextGLOpenGL::vertexAttribPointer(GCGLuint index, GCGLint size, GCGLenum type, GCGLboolean normalized, GCGLsizei stride, GCGLintptr offset) |
1754 |
void GraphicsContextGLANGLE::vertexAttribPointer(GCGLuint index, GCGLint size, GCGLenum type, GCGLboolean normalized, GCGLsizei stride, GCGLintptr offset) |
| 1761 |
{ |
1755 |
{ |
| 1762 |
if (!makeContextCurrent()) |
1756 |
if (!makeContextCurrent()) |
| 1763 |
return; |
1757 |
return; |
|
Lines 1765-1771
void GraphicsContextGLOpenGL::vertexAttribPointer(GCGLuint index, GCGLint size,
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec136
|
| 1765 |
gl::VertexAttribPointer(index, size, type, normalized, stride, reinterpret_cast<GLvoid*>(static_cast<intptr_t>(offset))); |
1759 |
gl::VertexAttribPointer(index, size, type, normalized, stride, reinterpret_cast<GLvoid*>(static_cast<intptr_t>(offset))); |
| 1766 |
} |
1760 |
} |
| 1767 |
|
1761 |
|
| 1768 |
void GraphicsContextGLOpenGL::vertexAttribIPointer(GCGLuint index, GCGLint size, GCGLenum type, GCGLsizei stride, GCGLintptr offset) |
1762 |
void GraphicsContextGLANGLE::vertexAttribIPointer(GCGLuint index, GCGLint size, GCGLenum type, GCGLsizei stride, GCGLintptr offset) |
| 1769 |
{ |
1763 |
{ |
| 1770 |
if (!makeContextCurrent()) |
1764 |
if (!makeContextCurrent()) |
| 1771 |
return; |
1765 |
return; |
|
Lines 1773-1779
void GraphicsContextGLOpenGL::vertexAttribIPointer(GCGLuint index, GCGLint size,
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec137
|
| 1773 |
gl::VertexAttribIPointer(index, size, type, stride, reinterpret_cast<GLvoid*>(static_cast<intptr_t>(offset))); |
1767 |
gl::VertexAttribIPointer(index, size, type, stride, reinterpret_cast<GLvoid*>(static_cast<intptr_t>(offset))); |
| 1774 |
} |
1768 |
} |
| 1775 |
|
1769 |
|
| 1776 |
void GraphicsContextGLOpenGL::viewport(GCGLint x, GCGLint y, GCGLsizei width, GCGLsizei height) |
1770 |
void GraphicsContextGLANGLE::viewport(GCGLint x, GCGLint y, GCGLsizei width, GCGLsizei height) |
| 1777 |
{ |
1771 |
{ |
| 1778 |
if (!makeContextCurrent()) |
1772 |
if (!makeContextCurrent()) |
| 1779 |
return; |
1773 |
return; |
|
Lines 1781-1787
void GraphicsContextGLOpenGL::viewport(GCGLint x, GCGLint y, GCGLsizei width, GC
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec138
|
| 1781 |
gl::Viewport(x, y, width, height); |
1775 |
gl::Viewport(x, y, width, height); |
| 1782 |
} |
1776 |
} |
| 1783 |
|
1777 |
|
| 1784 |
PlatformGLObject GraphicsContextGLOpenGL::createVertexArray() |
1778 |
PlatformGLObject GraphicsContextGLANGLE::createVertexArray() |
| 1785 |
{ |
1779 |
{ |
| 1786 |
if (!makeContextCurrent()) |
1780 |
if (!makeContextCurrent()) |
| 1787 |
return 0; |
1781 |
return 0; |
|
Lines 1794-1800
PlatformGLObject GraphicsContextGLOpenGL::createVertexArray()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec139
|
| 1794 |
return array; |
1788 |
return array; |
| 1795 |
} |
1789 |
} |
| 1796 |
|
1790 |
|
| 1797 |
void GraphicsContextGLOpenGL::deleteVertexArray(PlatformGLObject array) |
1791 |
void GraphicsContextGLANGLE::deleteVertexArray(PlatformGLObject array) |
| 1798 |
{ |
1792 |
{ |
| 1799 |
if (!array) |
1793 |
if (!array) |
| 1800 |
return; |
1794 |
return; |
|
Lines 1806-1812
void GraphicsContextGLOpenGL::deleteVertexArray(PlatformGLObject array)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec140
|
| 1806 |
gl::DeleteVertexArraysOES(1, &array); |
1800 |
gl::DeleteVertexArraysOES(1, &array); |
| 1807 |
} |
1801 |
} |
| 1808 |
|
1802 |
|
| 1809 |
GCGLboolean GraphicsContextGLOpenGL::isVertexArray(PlatformGLObject array) |
1803 |
GCGLboolean GraphicsContextGLANGLE::isVertexArray(PlatformGLObject array) |
| 1810 |
{ |
1804 |
{ |
| 1811 |
if (!array) |
1805 |
if (!array) |
| 1812 |
return GL_FALSE; |
1806 |
return GL_FALSE; |
|
Lines 1818-1824
GCGLboolean GraphicsContextGLOpenGL::isVertexArray(PlatformGLObject array)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec141
|
| 1818 |
return gl::IsVertexArrayOES(array); |
1812 |
return gl::IsVertexArrayOES(array); |
| 1819 |
} |
1813 |
} |
| 1820 |
|
1814 |
|
| 1821 |
void GraphicsContextGLOpenGL::bindVertexArray(PlatformGLObject array) |
1815 |
void GraphicsContextGLANGLE::bindVertexArray(PlatformGLObject array) |
| 1822 |
{ |
1816 |
{ |
| 1823 |
if (!makeContextCurrent()) |
1817 |
if (!makeContextCurrent()) |
| 1824 |
return; |
1818 |
return; |
|
Lines 1828-1834
void GraphicsContextGLOpenGL::bindVertexArray(PlatformGLObject array)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec142
|
| 1828 |
gl::BindVertexArrayOES(array); |
1822 |
gl::BindVertexArrayOES(array); |
| 1829 |
} |
1823 |
} |
| 1830 |
|
1824 |
|
| 1831 |
void GraphicsContextGLOpenGL::getBooleanv(GCGLenum pname, GCGLSpan<GCGLboolean> value) |
1825 |
void GraphicsContextGLANGLE::getBooleanv(GCGLenum pname, GCGLSpan<GCGLboolean> value) |
| 1832 |
{ |
1826 |
{ |
| 1833 |
if (!makeContextCurrent()) |
1827 |
if (!makeContextCurrent()) |
| 1834 |
return; |
1828 |
return; |
|
Lines 1836-1842
void GraphicsContextGLOpenGL::getBooleanv(GCGLenum pname, GCGLSpan<GCGLboolean>
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec143
|
| 1836 |
gl::GetBooleanvRobustANGLE(pname, value.bufSize, nullptr, value.data); |
1830 |
gl::GetBooleanvRobustANGLE(pname, value.bufSize, nullptr, value.data); |
| 1837 |
} |
1831 |
} |
| 1838 |
|
1832 |
|
| 1839 |
GCGLint GraphicsContextGLOpenGL::getBufferParameteri(GCGLenum target, GCGLenum pname) |
1833 |
GCGLint GraphicsContextGLANGLE::getBufferParameteri(GCGLenum target, GCGLenum pname) |
| 1840 |
{ |
1834 |
{ |
| 1841 |
GCGLint value = 0; |
1835 |
GCGLint value = 0; |
| 1842 |
if (!makeContextCurrent()) |
1836 |
if (!makeContextCurrent()) |
|
Lines 1845-1851
GCGLint GraphicsContextGLOpenGL::getBufferParameteri(GCGLenum target, GCGLenum p
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec144
|
| 1845 |
return value; |
1839 |
return value; |
| 1846 |
} |
1840 |
} |
| 1847 |
|
1841 |
|
| 1848 |
void GraphicsContextGLOpenGL::getFloatv(GCGLenum pname, GCGLSpan<GCGLfloat> value) |
1842 |
void GraphicsContextGLANGLE::getFloatv(GCGLenum pname, GCGLSpan<GCGLfloat> value) |
| 1849 |
{ |
1843 |
{ |
| 1850 |
if (!makeContextCurrent()) |
1844 |
if (!makeContextCurrent()) |
| 1851 |
return; |
1845 |
return; |
|
Lines 1853-1859
void GraphicsContextGLOpenGL::getFloatv(GCGLenum pname, GCGLSpan<GCGLfloat> valu
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec145
|
| 1853 |
gl::GetFloatvRobustANGLE(pname, value.bufSize, nullptr, value.data); |
1847 |
gl::GetFloatvRobustANGLE(pname, value.bufSize, nullptr, value.data); |
| 1854 |
} |
1848 |
} |
| 1855 |
|
1849 |
|
| 1856 |
GCGLint64 GraphicsContextGLOpenGL::getInteger64(GCGLenum pname) |
1850 |
GCGLint64 GraphicsContextGLANGLE::getInteger64(GCGLenum pname) |
| 1857 |
{ |
1851 |
{ |
| 1858 |
GCGLint64 value = 0; |
1852 |
GCGLint64 value = 0; |
| 1859 |
if (!makeContextCurrent()) |
1853 |
if (!makeContextCurrent()) |
|
Lines 1862-1868
GCGLint64 GraphicsContextGLOpenGL::getInteger64(GCGLenum pname)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec146
|
| 1862 |
return value; |
1856 |
return value; |
| 1863 |
} |
1857 |
} |
| 1864 |
|
1858 |
|
| 1865 |
GCGLint64 GraphicsContextGLOpenGL::getInteger64i(GCGLenum pname, GCGLuint index) |
1859 |
GCGLint64 GraphicsContextGLANGLE::getInteger64i(GCGLenum pname, GCGLuint index) |
| 1866 |
{ |
1860 |
{ |
| 1867 |
GCGLint64 value = 0; |
1861 |
GCGLint64 value = 0; |
| 1868 |
if (!makeContextCurrent()) |
1862 |
if (!makeContextCurrent()) |
|
Lines 1871-1877
GCGLint64 GraphicsContextGLOpenGL::getInteger64i(GCGLenum pname, GCGLuint index)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec147
|
| 1871 |
return value; |
1865 |
return value; |
| 1872 |
} |
1866 |
} |
| 1873 |
|
1867 |
|
| 1874 |
GCGLint GraphicsContextGLOpenGL::getFramebufferAttachmentParameteri(GCGLenum target, GCGLenum attachment, GCGLenum pname) |
1868 |
GCGLint GraphicsContextGLANGLE::getFramebufferAttachmentParameteri(GCGLenum target, GCGLenum attachment, GCGLenum pname) |
| 1875 |
{ |
1869 |
{ |
| 1876 |
GCGLint value = 0; |
1870 |
GCGLint value = 0; |
| 1877 |
if (!makeContextCurrent()) |
1871 |
if (!makeContextCurrent()) |
|
Lines 1882-1888
GCGLint GraphicsContextGLOpenGL::getFramebufferAttachmentParameteri(GCGLenum tar
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec148
|
| 1882 |
return value; |
1876 |
return value; |
| 1883 |
} |
1877 |
} |
| 1884 |
|
1878 |
|
| 1885 |
GCGLint GraphicsContextGLOpenGL::getProgrami(PlatformGLObject program, GCGLenum pname) |
1879 |
GCGLint GraphicsContextGLANGLE::getProgrami(PlatformGLObject program, GCGLenum pname) |
| 1886 |
{ |
1880 |
{ |
| 1887 |
GCGLint value = 0; |
1881 |
GCGLint value = 0; |
| 1888 |
if (!makeContextCurrent()) |
1882 |
if (!makeContextCurrent()) |
|
Lines 1891-1897
GCGLint GraphicsContextGLOpenGL::getProgrami(PlatformGLObject program, GCGLenum
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec149
|
| 1891 |
return value; |
1885 |
return value; |
| 1892 |
} |
1886 |
} |
| 1893 |
|
1887 |
|
| 1894 |
String GraphicsContextGLOpenGL::getUnmangledInfoLog(PlatformGLObject shaders[2], GCGLsizei count, const String& log) |
1888 |
String GraphicsContextGLANGLE::getUnmangledInfoLog(PlatformGLObject shaders[2], GCGLsizei count, const String& log) |
| 1895 |
{ |
1889 |
{ |
| 1896 |
UNUSED_PARAM(shaders); |
1890 |
UNUSED_PARAM(shaders); |
| 1897 |
UNUSED_PARAM(count); |
1891 |
UNUSED_PARAM(count); |
|
Lines 1911-1917
String GraphicsContextGLOpenGL::getUnmangledInfoLog(PlatformGLObject shaders[2],
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec150
|
| 1911 |
return processedLog.toString(); |
1905 |
return processedLog.toString(); |
| 1912 |
} |
1906 |
} |
| 1913 |
|
1907 |
|
| 1914 |
String GraphicsContextGLOpenGL::getProgramInfoLog(PlatformGLObject program) |
1908 |
String GraphicsContextGLANGLE::getProgramInfoLog(PlatformGLObject program) |
| 1915 |
{ |
1909 |
{ |
| 1916 |
ASSERT(program); |
1910 |
ASSERT(program); |
| 1917 |
|
1911 |
|
|
Lines 1934-1940
String GraphicsContextGLOpenGL::getProgramInfoLog(PlatformGLObject program)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec151
|
| 1934 |
return getUnmangledInfoLog(shaders, count, String(info.data(), size)); |
1928 |
return getUnmangledInfoLog(shaders, count, String(info.data(), size)); |
| 1935 |
} |
1929 |
} |
| 1936 |
|
1930 |
|
| 1937 |
GCGLint GraphicsContextGLOpenGL::getRenderbufferParameteri(GCGLenum target, GCGLenum pname) |
1931 |
GCGLint GraphicsContextGLANGLE::getRenderbufferParameteri(GCGLenum target, GCGLenum pname) |
| 1938 |
{ |
1932 |
{ |
| 1939 |
GCGLint value = 0; |
1933 |
GCGLint value = 0; |
| 1940 |
if (!makeContextCurrent()) |
1934 |
if (!makeContextCurrent()) |
|
Lines 1943-1949
GCGLint GraphicsContextGLOpenGL::getRenderbufferParameteri(GCGLenum target, GCGL
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec152
|
| 1943 |
return value; |
1937 |
return value; |
| 1944 |
} |
1938 |
} |
| 1945 |
|
1939 |
|
| 1946 |
GCGLint GraphicsContextGLOpenGL::getShaderi(PlatformGLObject shader, GCGLenum pname) |
1940 |
GCGLint GraphicsContextGLANGLE::getShaderi(PlatformGLObject shader, GCGLenum pname) |
| 1947 |
{ |
1941 |
{ |
| 1948 |
ASSERT(shader); |
1942 |
ASSERT(shader); |
| 1949 |
GCGLint value = 0; |
1943 |
GCGLint value = 0; |
|
Lines 1953-1959
GCGLint GraphicsContextGLOpenGL::getShaderi(PlatformGLObject shader, GCGLenum pn
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec153
|
| 1953 |
return value; |
1947 |
return value; |
| 1954 |
} |
1948 |
} |
| 1955 |
|
1949 |
|
| 1956 |
String GraphicsContextGLOpenGL::getShaderInfoLog(PlatformGLObject shader) |
1950 |
String GraphicsContextGLANGLE::getShaderInfoLog(PlatformGLObject shader) |
| 1957 |
{ |
1951 |
{ |
| 1958 |
ASSERT(shader); |
1952 |
ASSERT(shader); |
| 1959 |
|
1953 |
|
|
Lines 1973-1984
String GraphicsContextGLOpenGL::getShaderInfoLog(PlatformGLObject shader)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec154
|
| 1973 |
return getUnmangledInfoLog(shaders, 1, String(info.data(), size)); |
1967 |
return getUnmangledInfoLog(shaders, 1, String(info.data(), size)); |
| 1974 |
} |
1968 |
} |
| 1975 |
|
1969 |
|
| 1976 |
String GraphicsContextGLOpenGL::getShaderSource(PlatformGLObject) |
1970 |
String GraphicsContextGLANGLE::getShaderSource(PlatformGLObject) |
| 1977 |
{ |
1971 |
{ |
| 1978 |
return emptyString(); |
1972 |
return emptyString(); |
| 1979 |
} |
1973 |
} |
| 1980 |
|
1974 |
|
| 1981 |
GCGLfloat GraphicsContextGLOpenGL::getTexParameterf(GCGLenum target, GCGLenum pname) |
1975 |
GCGLfloat GraphicsContextGLANGLE::getTexParameterf(GCGLenum target, GCGLenum pname) |
| 1982 |
{ |
1976 |
{ |
| 1983 |
GCGLfloat value = 0.f; |
1977 |
GCGLfloat value = 0.f; |
| 1984 |
if (!makeContextCurrent()) |
1978 |
if (!makeContextCurrent()) |
|
Lines 1987-1993
GCGLfloat GraphicsContextGLOpenGL::getTexParameterf(GCGLenum target, GCGLenum pn
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec155
|
| 1987 |
return value; |
1981 |
return value; |
| 1988 |
} |
1982 |
} |
| 1989 |
|
1983 |
|
| 1990 |
GCGLint GraphicsContextGLOpenGL::getTexParameteri(GCGLenum target, GCGLenum pname) |
1984 |
GCGLint GraphicsContextGLANGLE::getTexParameteri(GCGLenum target, GCGLenum pname) |
| 1991 |
{ |
1985 |
{ |
| 1992 |
GCGLint value = 0; |
1986 |
GCGLint value = 0; |
| 1993 |
if (!makeContextCurrent()) |
1987 |
if (!makeContextCurrent()) |
|
Lines 1996-2002
GCGLint GraphicsContextGLOpenGL::getTexParameteri(GCGLenum target, GCGLenum pnam
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec156
|
| 1996 |
return value; |
1990 |
return value; |
| 1997 |
} |
1991 |
} |
| 1998 |
|
1992 |
|
| 1999 |
void GraphicsContextGLOpenGL::getUniformfv(PlatformGLObject program, GCGLint location, GCGLSpan<GCGLfloat> value) |
1993 |
void GraphicsContextGLANGLE::getUniformfv(PlatformGLObject program, GCGLint location, GCGLSpan<GCGLfloat> value) |
| 2000 |
{ |
1994 |
{ |
| 2001 |
if (!makeContextCurrent()) |
1995 |
if (!makeContextCurrent()) |
| 2002 |
return; |
1996 |
return; |
|
Lines 2005-2011
void GraphicsContextGLOpenGL::getUniformfv(PlatformGLObject program, GCGLint loc
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec157
|
| 2005 |
gl::GetUniformfvRobustANGLE(program, location, bufSize, nullptr, value.data); |
1999 |
gl::GetUniformfvRobustANGLE(program, location, bufSize, nullptr, value.data); |
| 2006 |
} |
2000 |
} |
| 2007 |
|
2001 |
|
| 2008 |
void GraphicsContextGLOpenGL::getUniformiv(PlatformGLObject program, GCGLint location, GCGLSpan<GCGLint> value) |
2002 |
void GraphicsContextGLANGLE::getUniformiv(PlatformGLObject program, GCGLint location, GCGLSpan<GCGLint> value) |
| 2009 |
{ |
2003 |
{ |
| 2010 |
if (!makeContextCurrent()) |
2004 |
if (!makeContextCurrent()) |
| 2011 |
return; |
2005 |
return; |
|
Lines 2014-2020
void GraphicsContextGLOpenGL::getUniformiv(PlatformGLObject program, GCGLint loc
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec158
|
| 2014 |
gl::GetUniformivRobustANGLE(program, location, bufSize, nullptr, value.data); |
2008 |
gl::GetUniformivRobustANGLE(program, location, bufSize, nullptr, value.data); |
| 2015 |
} |
2009 |
} |
| 2016 |
|
2010 |
|
| 2017 |
void GraphicsContextGLOpenGL::getUniformuiv(PlatformGLObject program, GCGLint location, GCGLSpan<GCGLuint> value) |
2011 |
void GraphicsContextGLANGLE::getUniformuiv(PlatformGLObject program, GCGLint location, GCGLSpan<GCGLuint> value) |
| 2018 |
{ |
2012 |
{ |
| 2019 |
if (!makeContextCurrent()) |
2013 |
if (!makeContextCurrent()) |
| 2020 |
return; |
2014 |
return; |
|
Lines 2023-2029
void GraphicsContextGLOpenGL::getUniformuiv(PlatformGLObject program, GCGLint lo
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec159
|
| 2023 |
gl::GetUniformuivRobustANGLE(program, location, bufSize, nullptr, value.data); |
2017 |
gl::GetUniformuivRobustANGLE(program, location, bufSize, nullptr, value.data); |
| 2024 |
} |
2018 |
} |
| 2025 |
|
2019 |
|
| 2026 |
GCGLint GraphicsContextGLOpenGL::getUniformLocation(PlatformGLObject program, const String& name) |
2020 |
GCGLint GraphicsContextGLANGLE::getUniformLocation(PlatformGLObject program, const String& name) |
| 2027 |
{ |
2021 |
{ |
| 2028 |
ASSERT(program); |
2022 |
ASSERT(program); |
| 2029 |
|
2023 |
|
|
Lines 2033-2039
GCGLint GraphicsContextGLOpenGL::getUniformLocation(PlatformGLObject program, co
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec160
|
| 2033 |
return gl::GetUniformLocation(program, name.utf8().data()); |
2027 |
return gl::GetUniformLocation(program, name.utf8().data()); |
| 2034 |
} |
2028 |
} |
| 2035 |
|
2029 |
|
| 2036 |
GCGLsizeiptr GraphicsContextGLOpenGL::getVertexAttribOffset(GCGLuint index, GCGLenum pname) |
2030 |
GCGLsizeiptr GraphicsContextGLANGLE::getVertexAttribOffset(GCGLuint index, GCGLenum pname) |
| 2037 |
{ |
2031 |
{ |
| 2038 |
if (!makeContextCurrent()) |
2032 |
if (!makeContextCurrent()) |
| 2039 |
return 0; |
2033 |
return 0; |
|
Lines 2043-2049
GCGLsizeiptr GraphicsContextGLOpenGL::getVertexAttribOffset(GCGLuint index, GCGL
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec161
|
| 2043 |
return static_cast<GCGLsizeiptr>(reinterpret_cast<intptr_t>(pointer)); |
2037 |
return static_cast<GCGLsizeiptr>(reinterpret_cast<intptr_t>(pointer)); |
| 2044 |
} |
2038 |
} |
| 2045 |
|
2039 |
|
| 2046 |
PlatformGLObject GraphicsContextGLOpenGL::createBuffer() |
2040 |
PlatformGLObject GraphicsContextGLANGLE::createBuffer() |
| 2047 |
{ |
2041 |
{ |
| 2048 |
if (!makeContextCurrent()) |
2042 |
if (!makeContextCurrent()) |
| 2049 |
return 0; |
2043 |
return 0; |
|
Lines 2053-2059
PlatformGLObject GraphicsContextGLOpenGL::createBuffer()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec162
|
| 2053 |
return o; |
2047 |
return o; |
| 2054 |
} |
2048 |
} |
| 2055 |
|
2049 |
|
| 2056 |
PlatformGLObject GraphicsContextGLOpenGL::createFramebuffer() |
2050 |
PlatformGLObject GraphicsContextGLANGLE::createFramebuffer() |
| 2057 |
{ |
2051 |
{ |
| 2058 |
if (!makeContextCurrent()) |
2052 |
if (!makeContextCurrent()) |
| 2059 |
return 0; |
2053 |
return 0; |
|
Lines 2063-2069
PlatformGLObject GraphicsContextGLOpenGL::createFramebuffer()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec163
|
| 2063 |
return o; |
2057 |
return o; |
| 2064 |
} |
2058 |
} |
| 2065 |
|
2059 |
|
| 2066 |
PlatformGLObject GraphicsContextGLOpenGL::createProgram() |
2060 |
PlatformGLObject GraphicsContextGLANGLE::createProgram() |
| 2067 |
{ |
2061 |
{ |
| 2068 |
if (!makeContextCurrent()) |
2062 |
if (!makeContextCurrent()) |
| 2069 |
return 0; |
2063 |
return 0; |
|
Lines 2071-2077
PlatformGLObject GraphicsContextGLOpenGL::createProgram()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec164
|
| 2071 |
return gl::CreateProgram(); |
2065 |
return gl::CreateProgram(); |
| 2072 |
} |
2066 |
} |
| 2073 |
|
2067 |
|
| 2074 |
PlatformGLObject GraphicsContextGLOpenGL::createRenderbuffer() |
2068 |
PlatformGLObject GraphicsContextGLANGLE::createRenderbuffer() |
| 2075 |
{ |
2069 |
{ |
| 2076 |
if (!makeContextCurrent()) |
2070 |
if (!makeContextCurrent()) |
| 2077 |
return 0; |
2071 |
return 0; |
|
Lines 2081-2087
PlatformGLObject GraphicsContextGLOpenGL::createRenderbuffer()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec165
|
| 2081 |
return o; |
2075 |
return o; |
| 2082 |
} |
2076 |
} |
| 2083 |
|
2077 |
|
| 2084 |
PlatformGLObject GraphicsContextGLOpenGL::createShader(GCGLenum type) |
2078 |
PlatformGLObject GraphicsContextGLANGLE::createShader(GCGLenum type) |
| 2085 |
{ |
2079 |
{ |
| 2086 |
if (!makeContextCurrent()) |
2080 |
if (!makeContextCurrent()) |
| 2087 |
return 0; |
2081 |
return 0; |
|
Lines 2089-2095
PlatformGLObject GraphicsContextGLOpenGL::createShader(GCGLenum type)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec166
|
| 2089 |
return gl::CreateShader((type == FRAGMENT_SHADER) ? GL_FRAGMENT_SHADER : GL_VERTEX_SHADER); |
2083 |
return gl::CreateShader((type == FRAGMENT_SHADER) ? GL_FRAGMENT_SHADER : GL_VERTEX_SHADER); |
| 2090 |
} |
2084 |
} |
| 2091 |
|
2085 |
|
| 2092 |
PlatformGLObject GraphicsContextGLOpenGL::createTexture() |
2086 |
PlatformGLObject GraphicsContextGLANGLE::createTexture() |
| 2093 |
{ |
2087 |
{ |
| 2094 |
if (!makeContextCurrent()) |
2088 |
if (!makeContextCurrent()) |
| 2095 |
return 0; |
2089 |
return 0; |
|
Lines 2100-2106
PlatformGLObject GraphicsContextGLOpenGL::createTexture()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec167
|
| 2100 |
return o; |
2094 |
return o; |
| 2101 |
} |
2095 |
} |
| 2102 |
|
2096 |
|
| 2103 |
void GraphicsContextGLOpenGL::deleteBuffer(PlatformGLObject buffer) |
2097 |
void GraphicsContextGLANGLE::deleteBuffer(PlatformGLObject buffer) |
| 2104 |
{ |
2098 |
{ |
| 2105 |
if (!makeContextCurrent()) |
2099 |
if (!makeContextCurrent()) |
| 2106 |
return; |
2100 |
return; |
|
Lines 2108-2114
void GraphicsContextGLOpenGL::deleteBuffer(PlatformGLObject buffer)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec168
|
| 2108 |
gl::DeleteBuffers(1, &buffer); |
2102 |
gl::DeleteBuffers(1, &buffer); |
| 2109 |
} |
2103 |
} |
| 2110 |
|
2104 |
|
| 2111 |
void GraphicsContextGLOpenGL::deleteFramebuffer(PlatformGLObject framebuffer) |
2105 |
void GraphicsContextGLANGLE::deleteFramebuffer(PlatformGLObject framebuffer) |
| 2112 |
{ |
2106 |
{ |
| 2113 |
if (!makeContextCurrent()) |
2107 |
if (!makeContextCurrent()) |
| 2114 |
return; |
2108 |
return; |
|
Lines 2125-2131
void GraphicsContextGLOpenGL::deleteFramebuffer(PlatformGLObject framebuffer)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec169
|
| 2125 |
gl::DeleteFramebuffers(1, &framebuffer); |
2119 |
gl::DeleteFramebuffers(1, &framebuffer); |
| 2126 |
} |
2120 |
} |
| 2127 |
|
2121 |
|
| 2128 |
void GraphicsContextGLOpenGL::deleteProgram(PlatformGLObject program) |
2122 |
void GraphicsContextGLANGLE::deleteProgram(PlatformGLObject program) |
| 2129 |
{ |
2123 |
{ |
| 2130 |
if (!makeContextCurrent()) |
2124 |
if (!makeContextCurrent()) |
| 2131 |
return; |
2125 |
return; |
|
Lines 2133-2139
void GraphicsContextGLOpenGL::deleteProgram(PlatformGLObject program)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec170
|
| 2133 |
gl::DeleteProgram(program); |
2127 |
gl::DeleteProgram(program); |
| 2134 |
} |
2128 |
} |
| 2135 |
|
2129 |
|
| 2136 |
void GraphicsContextGLOpenGL::deleteRenderbuffer(PlatformGLObject renderbuffer) |
2130 |
void GraphicsContextGLANGLE::deleteRenderbuffer(PlatformGLObject renderbuffer) |
| 2137 |
{ |
2131 |
{ |
| 2138 |
if (!makeContextCurrent()) |
2132 |
if (!makeContextCurrent()) |
| 2139 |
return; |
2133 |
return; |
|
Lines 2141-2147
void GraphicsContextGLOpenGL::deleteRenderbuffer(PlatformGLObject renderbuffer)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec171
|
| 2141 |
gl::DeleteRenderbuffers(1, &renderbuffer); |
2135 |
gl::DeleteRenderbuffers(1, &renderbuffer); |
| 2142 |
} |
2136 |
} |
| 2143 |
|
2137 |
|
| 2144 |
void GraphicsContextGLOpenGL::deleteShader(PlatformGLObject shader) |
2138 |
void GraphicsContextGLANGLE::deleteShader(PlatformGLObject shader) |
| 2145 |
{ |
2139 |
{ |
| 2146 |
if (!makeContextCurrent()) |
2140 |
if (!makeContextCurrent()) |
| 2147 |
return; |
2141 |
return; |
|
Lines 2149-2155
void GraphicsContextGLOpenGL::deleteShader(PlatformGLObject shader)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec172
|
| 2149 |
gl::DeleteShader(shader); |
2143 |
gl::DeleteShader(shader); |
| 2150 |
} |
2144 |
} |
| 2151 |
|
2145 |
|
| 2152 |
void GraphicsContextGLOpenGL::deleteTexture(PlatformGLObject texture) |
2146 |
void GraphicsContextGLANGLE::deleteTexture(PlatformGLObject texture) |
| 2153 |
{ |
2147 |
{ |
| 2154 |
if (!makeContextCurrent()) |
2148 |
if (!makeContextCurrent()) |
| 2155 |
return; |
2149 |
return; |
|
Lines 2161-2167
void GraphicsContextGLOpenGL::deleteTexture(PlatformGLObject texture)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec173
|
| 2161 |
m_state.textureSeedCount.removeAll(texture); |
2155 |
m_state.textureSeedCount.removeAll(texture); |
| 2162 |
} |
2156 |
} |
| 2163 |
|
2157 |
|
| 2164 |
void GraphicsContextGLOpenGL::synthesizeGLError(GCGLenum error) |
2158 |
void GraphicsContextGLANGLE::synthesizeGLError(GCGLenum error) |
| 2165 |
{ |
2159 |
{ |
| 2166 |
// Need to move the current errors to the synthetic error list to |
2160 |
// Need to move the current errors to the synthetic error list to |
| 2167 |
// preserve the order of errors, so a caller to getError will get |
2161 |
// preserve the order of errors, so a caller to getError will get |
|
Lines 2170-2194
void GraphicsContextGLOpenGL::synthesizeGLError(GCGLenum error)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec174
|
| 2170 |
m_syntheticErrors.add(error); |
2164 |
m_syntheticErrors.add(error); |
| 2171 |
} |
2165 |
} |
| 2172 |
|
2166 |
|
| 2173 |
void GraphicsContextGLOpenGL::forceContextLost() |
2167 |
void GraphicsContextGLANGLE::forceContextLost() |
| 2174 |
{ |
2168 |
{ |
| 2175 |
for (auto* client : copyToVector(m_clients)) |
2169 |
for (auto* client : copyToVector(m_clients)) |
| 2176 |
client->forceContextLost(); |
2170 |
client->forceContextLost(); |
| 2177 |
} |
2171 |
} |
| 2178 |
|
2172 |
|
| 2179 |
void GraphicsContextGLOpenGL::recycleContext() |
2173 |
void GraphicsContextGLANGLE::recycleContext() |
| 2180 |
{ |
2174 |
{ |
| 2181 |
for (auto* client : copyToVector(m_clients)) |
2175 |
for (auto* client : copyToVector(m_clients)) |
| 2182 |
client->recycleContext(); |
2176 |
client->recycleContext(); |
| 2183 |
} |
2177 |
} |
| 2184 |
|
2178 |
|
| 2185 |
void GraphicsContextGLOpenGL::dispatchContextChangedNotification() |
2179 |
void GraphicsContextGLANGLE::dispatchContextChangedNotification() |
| 2186 |
{ |
2180 |
{ |
| 2187 |
for (auto* client : copyToVector(m_clients)) |
2181 |
for (auto* client : copyToVector(m_clients)) |
| 2188 |
client->dispatchContextChangedNotification(); |
2182 |
client->dispatchContextChangedNotification(); |
| 2189 |
} |
2183 |
} |
| 2190 |
|
2184 |
|
| 2191 |
void GraphicsContextGLOpenGL::drawArraysInstanced(GCGLenum mode, GCGLint first, GCGLsizei count, GCGLsizei primcount) |
2185 |
void GraphicsContextGLANGLE::drawArraysInstanced(GCGLenum mode, GCGLint first, GCGLsizei count, GCGLsizei primcount) |
| 2192 |
{ |
2186 |
{ |
| 2193 |
if (!makeContextCurrent()) |
2187 |
if (!makeContextCurrent()) |
| 2194 |
return; |
2188 |
return; |
|
Lines 2200-2206
void GraphicsContextGLOpenGL::drawArraysInstanced(GCGLenum mode, GCGLint first,
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec175
|
| 2200 |
checkGPUStatus(); |
2194 |
checkGPUStatus(); |
| 2201 |
} |
2195 |
} |
| 2202 |
|
2196 |
|
| 2203 |
void GraphicsContextGLOpenGL::drawElementsInstanced(GCGLenum mode, GCGLsizei count, GCGLenum type, GCGLintptr offset, GCGLsizei primcount) |
2197 |
void GraphicsContextGLANGLE::drawElementsInstanced(GCGLenum mode, GCGLsizei count, GCGLenum type, GCGLintptr offset, GCGLsizei primcount) |
| 2204 |
{ |
2198 |
{ |
| 2205 |
if (!makeContextCurrent()) |
2199 |
if (!makeContextCurrent()) |
| 2206 |
return; |
2200 |
return; |
|
Lines 2212-2218
void GraphicsContextGLOpenGL::drawElementsInstanced(GCGLenum mode, GCGLsizei cou
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec176
|
| 2212 |
checkGPUStatus(); |
2206 |
checkGPUStatus(); |
| 2213 |
} |
2207 |
} |
| 2214 |
|
2208 |
|
| 2215 |
void GraphicsContextGLOpenGL::vertexAttribDivisor(GCGLuint index, GCGLuint divisor) |
2209 |
void GraphicsContextGLANGLE::vertexAttribDivisor(GCGLuint index, GCGLuint divisor) |
| 2216 |
{ |
2210 |
{ |
| 2217 |
if (!makeContextCurrent()) |
2211 |
if (!makeContextCurrent()) |
| 2218 |
return; |
2212 |
return; |
|
Lines 2223-2229
void GraphicsContextGLOpenGL::vertexAttribDivisor(GCGLuint index, GCGLuint divis
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec177
|
| 2223 |
gl::VertexAttribDivisorANGLE(index, divisor); |
2217 |
gl::VertexAttribDivisorANGLE(index, divisor); |
| 2224 |
} |
2218 |
} |
| 2225 |
|
2219 |
|
| 2226 |
GCGLuint GraphicsContextGLOpenGL::getUniformBlockIndex(PlatformGLObject program, const String& uniformBlockName) |
2220 |
GCGLuint GraphicsContextGLANGLE::getUniformBlockIndex(PlatformGLObject program, const String& uniformBlockName) |
| 2227 |
{ |
2221 |
{ |
| 2228 |
ASSERT(program); |
2222 |
ASSERT(program); |
| 2229 |
if (!makeContextCurrent()) |
2223 |
if (!makeContextCurrent()) |
|
Lines 2232-2238
GCGLuint GraphicsContextGLOpenGL::getUniformBlockIndex(PlatformGLObject program,
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec178
|
| 2232 |
return gl::GetUniformBlockIndex(program, uniformBlockName.utf8().data()); |
2226 |
return gl::GetUniformBlockIndex(program, uniformBlockName.utf8().data()); |
| 2233 |
} |
2227 |
} |
| 2234 |
|
2228 |
|
| 2235 |
String GraphicsContextGLOpenGL::getActiveUniformBlockName(PlatformGLObject program, GCGLuint uniformBlockIndex) |
2229 |
String GraphicsContextGLANGLE::getActiveUniformBlockName(PlatformGLObject program, GCGLuint uniformBlockIndex) |
| 2236 |
{ |
2230 |
{ |
| 2237 |
ASSERT(program); |
2231 |
ASSERT(program); |
| 2238 |
if (!makeContextCurrent()) |
2232 |
if (!makeContextCurrent()) |
|
Lines 2252-2258
String GraphicsContextGLOpenGL::getActiveUniformBlockName(PlatformGLObject progr
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec179
|
| 2252 |
return String(buffer.data(), length); |
2246 |
return String(buffer.data(), length); |
| 2253 |
} |
2247 |
} |
| 2254 |
|
2248 |
|
| 2255 |
void GraphicsContextGLOpenGL::uniformBlockBinding(PlatformGLObject program, GCGLuint uniformBlockIndex, GCGLuint uniformBlockBinding) |
2249 |
void GraphicsContextGLANGLE::uniformBlockBinding(PlatformGLObject program, GCGLuint uniformBlockIndex, GCGLuint uniformBlockBinding) |
| 2256 |
{ |
2250 |
{ |
| 2257 |
ASSERT(program); |
2251 |
ASSERT(program); |
| 2258 |
if (!makeContextCurrent()) |
2252 |
if (!makeContextCurrent()) |
|
Lines 2263-2269
void GraphicsContextGLOpenGL::uniformBlockBinding(PlatformGLObject program, GCGL
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec180
|
| 2263 |
|
2257 |
|
| 2264 |
// Query Functions |
2258 |
// Query Functions |
| 2265 |
|
2259 |
|
| 2266 |
PlatformGLObject GraphicsContextGLOpenGL::createQuery() |
2260 |
PlatformGLObject GraphicsContextGLANGLE::createQuery() |
| 2267 |
{ |
2261 |
{ |
| 2268 |
if (!makeContextCurrent()) |
2262 |
if (!makeContextCurrent()) |
| 2269 |
return 0; |
2263 |
return 0; |
|
Lines 2273-2279
PlatformGLObject GraphicsContextGLOpenGL::createQuery()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec181
|
| 2273 |
return name; |
2267 |
return name; |
| 2274 |
} |
2268 |
} |
| 2275 |
|
2269 |
|
| 2276 |
void GraphicsContextGLOpenGL::beginQuery(GCGLenum target, PlatformGLObject query) |
2270 |
void GraphicsContextGLANGLE::beginQuery(GCGLenum target, PlatformGLObject query) |
| 2277 |
{ |
2271 |
{ |
| 2278 |
if (!makeContextCurrent()) |
2272 |
if (!makeContextCurrent()) |
| 2279 |
return; |
2273 |
return; |
|
Lines 2281-2287
void GraphicsContextGLOpenGL::beginQuery(GCGLenum target, PlatformGLObject query
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec182
|
| 2281 |
gl::BeginQuery(target, query); |
2275 |
gl::BeginQuery(target, query); |
| 2282 |
} |
2276 |
} |
| 2283 |
|
2277 |
|
| 2284 |
void GraphicsContextGLOpenGL::endQuery(GCGLenum target) |
2278 |
void GraphicsContextGLANGLE::endQuery(GCGLenum target) |
| 2285 |
{ |
2279 |
{ |
| 2286 |
if (!makeContextCurrent()) |
2280 |
if (!makeContextCurrent()) |
| 2287 |
return; |
2281 |
return; |
|
Lines 2289-2295
void GraphicsContextGLOpenGL::endQuery(GCGLenum target)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec183
|
| 2289 |
gl::EndQuery(target); |
2283 |
gl::EndQuery(target); |
| 2290 |
} |
2284 |
} |
| 2291 |
|
2285 |
|
| 2292 |
GCGLuint GraphicsContextGLOpenGL::getQueryObjectui(GCGLuint id, GCGLenum pname) |
2286 |
GCGLuint GraphicsContextGLANGLE::getQueryObjectui(GCGLuint id, GCGLenum pname) |
| 2293 |
{ |
2287 |
{ |
| 2294 |
GCGLuint value = 0; |
2288 |
GCGLuint value = 0; |
| 2295 |
if (!makeContextCurrent()) |
2289 |
if (!makeContextCurrent()) |
|
Lines 2300-2306
GCGLuint GraphicsContextGLOpenGL::getQueryObjectui(GCGLuint id, GCGLenum pname)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec184
|
| 2300 |
|
2294 |
|
| 2301 |
// Transform Feedback Functions |
2295 |
// Transform Feedback Functions |
| 2302 |
|
2296 |
|
| 2303 |
PlatformGLObject GraphicsContextGLOpenGL::createTransformFeedback() |
2297 |
PlatformGLObject GraphicsContextGLANGLE::createTransformFeedback() |
| 2304 |
{ |
2298 |
{ |
| 2305 |
if (!makeContextCurrent()) |
2299 |
if (!makeContextCurrent()) |
| 2306 |
return 0; |
2300 |
return 0; |
|
Lines 2310-2316
PlatformGLObject GraphicsContextGLOpenGL::createTransformFeedback()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec185
|
| 2310 |
return name; |
2304 |
return name; |
| 2311 |
} |
2305 |
} |
| 2312 |
|
2306 |
|
| 2313 |
void GraphicsContextGLOpenGL::deleteTransformFeedback(PlatformGLObject transformFeedback) |
2307 |
void GraphicsContextGLANGLE::deleteTransformFeedback(PlatformGLObject transformFeedback) |
| 2314 |
{ |
2308 |
{ |
| 2315 |
if (!makeContextCurrent()) |
2309 |
if (!makeContextCurrent()) |
| 2316 |
return; |
2310 |
return; |
|
Lines 2318-2324
void GraphicsContextGLOpenGL::deleteTransformFeedback(PlatformGLObject transform
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec186
|
| 2318 |
gl::DeleteTransformFeedbacks(1, &transformFeedback); |
2312 |
gl::DeleteTransformFeedbacks(1, &transformFeedback); |
| 2319 |
} |
2313 |
} |
| 2320 |
|
2314 |
|
| 2321 |
GCGLboolean GraphicsContextGLOpenGL::isTransformFeedback(PlatformGLObject transformFeedback) |
2315 |
GCGLboolean GraphicsContextGLANGLE::isTransformFeedback(PlatformGLObject transformFeedback) |
| 2322 |
{ |
2316 |
{ |
| 2323 |
if (!makeContextCurrent()) |
2317 |
if (!makeContextCurrent()) |
| 2324 |
return GL_FALSE; |
2318 |
return GL_FALSE; |
|
Lines 2326-2332
GCGLboolean GraphicsContextGLOpenGL::isTransformFeedback(PlatformGLObject transf
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec187
|
| 2326 |
return gl::IsTransformFeedback(transformFeedback); |
2320 |
return gl::IsTransformFeedback(transformFeedback); |
| 2327 |
} |
2321 |
} |
| 2328 |
|
2322 |
|
| 2329 |
void GraphicsContextGLOpenGL::bindTransformFeedback(GCGLenum target, PlatformGLObject transformFeedback) |
2323 |
void GraphicsContextGLANGLE::bindTransformFeedback(GCGLenum target, PlatformGLObject transformFeedback) |
| 2330 |
{ |
2324 |
{ |
| 2331 |
if (!makeContextCurrent()) |
2325 |
if (!makeContextCurrent()) |
| 2332 |
return; |
2326 |
return; |
|
Lines 2334-2340
void GraphicsContextGLOpenGL::bindTransformFeedback(GCGLenum target, PlatformGLO
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec188
|
| 2334 |
gl::BindTransformFeedback(target, transformFeedback); |
2328 |
gl::BindTransformFeedback(target, transformFeedback); |
| 2335 |
} |
2329 |
} |
| 2336 |
|
2330 |
|
| 2337 |
void GraphicsContextGLOpenGL::beginTransformFeedback(GCGLenum primitiveMode) |
2331 |
void GraphicsContextGLANGLE::beginTransformFeedback(GCGLenum primitiveMode) |
| 2338 |
{ |
2332 |
{ |
| 2339 |
if (!makeContextCurrent()) |
2333 |
if (!makeContextCurrent()) |
| 2340 |
return; |
2334 |
return; |
|
Lines 2342-2348
void GraphicsContextGLOpenGL::beginTransformFeedback(GCGLenum primitiveMode)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec189
|
| 2342 |
gl::BeginTransformFeedback(primitiveMode); |
2336 |
gl::BeginTransformFeedback(primitiveMode); |
| 2343 |
} |
2337 |
} |
| 2344 |
|
2338 |
|
| 2345 |
void GraphicsContextGLOpenGL::endTransformFeedback() |
2339 |
void GraphicsContextGLANGLE::endTransformFeedback() |
| 2346 |
{ |
2340 |
{ |
| 2347 |
if (!makeContextCurrent()) |
2341 |
if (!makeContextCurrent()) |
| 2348 |
return; |
2342 |
return; |
|
Lines 2350-2356
void GraphicsContextGLOpenGL::endTransformFeedback()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec190
|
| 2350 |
gl::EndTransformFeedback(); |
2344 |
gl::EndTransformFeedback(); |
| 2351 |
} |
2345 |
} |
| 2352 |
|
2346 |
|
| 2353 |
void GraphicsContextGLOpenGL::transformFeedbackVaryings(PlatformGLObject program, const Vector<String>& varyings, GCGLenum bufferMode) |
2347 |
void GraphicsContextGLANGLE::transformFeedbackVaryings(PlatformGLObject program, const Vector<String>& varyings, GCGLenum bufferMode) |
| 2354 |
{ |
2348 |
{ |
| 2355 |
if (!makeContextCurrent()) |
2349 |
if (!makeContextCurrent()) |
| 2356 |
return; |
2350 |
return; |
|
Lines 2365-2377
void GraphicsContextGLOpenGL::transformFeedbackVaryings(PlatformGLObject program
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec191
|
| 2365 |
gl::TransformFeedbackVaryings(program, pointersToVaryings.size(), pointersToVaryings.data(), bufferMode); |
2359 |
gl::TransformFeedbackVaryings(program, pointersToVaryings.size(), pointersToVaryings.data(), bufferMode); |
| 2366 |
} |
2360 |
} |
| 2367 |
|
2361 |
|
| 2368 |
void GraphicsContextGLOpenGL::getTransformFeedbackVarying(PlatformGLObject program, GCGLuint index, ActiveInfo& info) |
2362 |
void GraphicsContextGLANGLE::getTransformFeedbackVarying(PlatformGLObject program, GCGLuint index, ActiveInfo& info) |
| 2369 |
{ |
2363 |
{ |
| 2370 |
if (!makeContextCurrent()) |
2364 |
if (!makeContextCurrent()) |
| 2371 |
return; |
2365 |
return; |
| 2372 |
|
2366 |
|
| 2373 |
GCGLsizei bufSize = 0; |
2367 |
GCGLsizei bufSize = 0; |
| 2374 |
gl::GetProgramiv(program, GraphicsContextGLOpenGL::TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH, &bufSize); |
2368 |
gl::GetProgramiv(program, GraphicsContextGLANGLE::TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH, &bufSize); |
| 2375 |
if (!bufSize) |
2369 |
if (!bufSize) |
| 2376 |
return; |
2370 |
return; |
| 2377 |
|
2371 |
|
|
Lines 2387-2393
void GraphicsContextGLOpenGL::getTransformFeedbackVarying(PlatformGLObject progr
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec192
|
| 2387 |
info.type = type; |
2381 |
info.type = type; |
| 2388 |
} |
2382 |
} |
| 2389 |
|
2383 |
|
| 2390 |
void GraphicsContextGLOpenGL::bindBufferBase(GCGLenum target, GCGLuint index, PlatformGLObject buffer) |
2384 |
void GraphicsContextGLANGLE::bindBufferBase(GCGLenum target, GCGLuint index, PlatformGLObject buffer) |
| 2391 |
{ |
2385 |
{ |
| 2392 |
if (!makeContextCurrent()) |
2386 |
if (!makeContextCurrent()) |
| 2393 |
return; |
2387 |
return; |
|
Lines 2395-2401
void GraphicsContextGLOpenGL::bindBufferBase(GCGLenum target, GCGLuint index, Pl
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec193
|
| 2395 |
gl::BindBufferBase(target, index, buffer); |
2389 |
gl::BindBufferBase(target, index, buffer); |
| 2396 |
} |
2390 |
} |
| 2397 |
|
2391 |
|
| 2398 |
void GraphicsContextGLOpenGL::blitFramebuffer(GCGLint srcX0, GCGLint srcY0, GCGLint srcX1, GCGLint srcY1, GCGLint dstX0, GCGLint dstY0, GCGLint dstX1, GCGLint dstY1, GCGLbitfield mask, GCGLenum filter) |
2392 |
void GraphicsContextGLANGLE::blitFramebuffer(GCGLint srcX0, GCGLint srcY0, GCGLint srcX1, GCGLint srcY1, GCGLint dstX0, GCGLint dstY0, GCGLint dstX1, GCGLint dstY1, GCGLbitfield mask, GCGLenum filter) |
| 2399 |
{ |
2393 |
{ |
| 2400 |
if (!makeContextCurrent()) |
2394 |
if (!makeContextCurrent()) |
| 2401 |
return; |
2395 |
return; |
|
Lines 2403-2409
void GraphicsContextGLOpenGL::blitFramebuffer(GCGLint srcX0, GCGLint srcY0, GCGL
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec194
|
| 2403 |
gl::BlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); |
2397 |
gl::BlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); |
| 2404 |
} |
2398 |
} |
| 2405 |
|
2399 |
|
| 2406 |
void GraphicsContextGLOpenGL::framebufferTextureLayer(GCGLenum target, GCGLenum attachment, PlatformGLObject texture, GCGLint level, GCGLint layer) |
2400 |
void GraphicsContextGLANGLE::framebufferTextureLayer(GCGLenum target, GCGLenum attachment, PlatformGLObject texture, GCGLint level, GCGLint layer) |
| 2407 |
{ |
2401 |
{ |
| 2408 |
if (!makeContextCurrent()) |
2402 |
if (!makeContextCurrent()) |
| 2409 |
return; |
2403 |
return; |
|
Lines 2411-2417
void GraphicsContextGLOpenGL::framebufferTextureLayer(GCGLenum target, GCGLenum
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec195
|
| 2411 |
gl::FramebufferTextureLayer(target, attachment, texture, level, layer); |
2405 |
gl::FramebufferTextureLayer(target, attachment, texture, level, layer); |
| 2412 |
} |
2406 |
} |
| 2413 |
|
2407 |
|
| 2414 |
void GraphicsContextGLOpenGL::invalidateFramebuffer(GCGLenum target, GCGLSpan<const GCGLenum> attachments) |
2408 |
void GraphicsContextGLANGLE::invalidateFramebuffer(GCGLenum target, GCGLSpan<const GCGLenum> attachments) |
| 2415 |
{ |
2409 |
{ |
| 2416 |
if (!makeContextCurrent()) |
2410 |
if (!makeContextCurrent()) |
| 2417 |
return; |
2411 |
return; |
|
Lines 2419-2425
void GraphicsContextGLOpenGL::invalidateFramebuffer(GCGLenum target, GCGLSpan<co
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec196
|
| 2419 |
gl::InvalidateFramebuffer(target, attachments.bufSize, attachments.data); |
2413 |
gl::InvalidateFramebuffer(target, attachments.bufSize, attachments.data); |
| 2420 |
} |
2414 |
} |
| 2421 |
|
2415 |
|
| 2422 |
void GraphicsContextGLOpenGL::invalidateSubFramebuffer(GCGLenum target, GCGLSpan<const GCGLenum> attachments, GCGLint x, GCGLint y, GCGLsizei width, GCGLsizei height) |
2416 |
void GraphicsContextGLANGLE::invalidateSubFramebuffer(GCGLenum target, GCGLSpan<const GCGLenum> attachments, GCGLint x, GCGLint y, GCGLsizei width, GCGLsizei height) |
| 2423 |
{ |
2417 |
{ |
| 2424 |
if (!makeContextCurrent()) |
2418 |
if (!makeContextCurrent()) |
| 2425 |
return; |
2419 |
return; |
|
Lines 2427-2433
void GraphicsContextGLOpenGL::invalidateSubFramebuffer(GCGLenum target, GCGLSpan
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec197
|
| 2427 |
gl::InvalidateSubFramebuffer(target, attachments.bufSize, attachments.data, x, y, width, height); |
2421 |
gl::InvalidateSubFramebuffer(target, attachments.bufSize, attachments.data, x, y, width, height); |
| 2428 |
} |
2422 |
} |
| 2429 |
|
2423 |
|
| 2430 |
void GraphicsContextGLOpenGL::readBuffer(GCGLenum src) |
2424 |
void GraphicsContextGLANGLE::readBuffer(GCGLenum src) |
| 2431 |
{ |
2425 |
{ |
| 2432 |
if (!makeContextCurrent()) |
2426 |
if (!makeContextCurrent()) |
| 2433 |
return; |
2427 |
return; |
|
Lines 2435-2441
void GraphicsContextGLOpenGL::readBuffer(GCGLenum src)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec198
|
| 2435 |
gl::ReadBuffer(src); |
2429 |
gl::ReadBuffer(src); |
| 2436 |
} |
2430 |
} |
| 2437 |
|
2431 |
|
| 2438 |
void GraphicsContextGLOpenGL::copyTexSubImage3D(GCGLenum target, GCGLint level, GCGLint xoffset, GCGLint yoffset, GCGLint zoffset, GCGLint x, GCGLint y, GCGLsizei width, GCGLsizei height) |
2432 |
void GraphicsContextGLANGLE::copyTexSubImage3D(GCGLenum target, GCGLint level, GCGLint xoffset, GCGLint yoffset, GCGLint zoffset, GCGLint x, GCGLint y, GCGLsizei width, GCGLsizei height) |
| 2439 |
{ |
2433 |
{ |
| 2440 |
if (!makeContextCurrent()) |
2434 |
if (!makeContextCurrent()) |
| 2441 |
return; |
2435 |
return; |
|
Lines 2452-2458
void GraphicsContextGLOpenGL::copyTexSubImage3D(GCGLenum target, GCGLint level,
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec199
|
| 2452 |
gl::BindFramebuffer(framebufferTarget, m_multisampleFBO); |
2446 |
gl::BindFramebuffer(framebufferTarget, m_multisampleFBO); |
| 2453 |
} |
2447 |
} |
| 2454 |
|
2448 |
|
| 2455 |
GCGLint GraphicsContextGLOpenGL::getFragDataLocation(PlatformGLObject program, const String& name) |
2449 |
GCGLint GraphicsContextGLANGLE::getFragDataLocation(PlatformGLObject program, const String& name) |
| 2456 |
{ |
2450 |
{ |
| 2457 |
if (!makeContextCurrent()) |
2451 |
if (!makeContextCurrent()) |
| 2458 |
return -1; |
2452 |
return -1; |
|
Lines 2460-2466
GCGLint GraphicsContextGLOpenGL::getFragDataLocation(PlatformGLObject program, c
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec200
|
| 2460 |
return gl::GetFragDataLocation(program, name.utf8().data()); |
2454 |
return gl::GetFragDataLocation(program, name.utf8().data()); |
| 2461 |
} |
2455 |
} |
| 2462 |
|
2456 |
|
| 2463 |
void GraphicsContextGLOpenGL::uniform1ui(GCGLint location, GCGLuint v0) |
2457 |
void GraphicsContextGLANGLE::uniform1ui(GCGLint location, GCGLuint v0) |
| 2464 |
{ |
2458 |
{ |
| 2465 |
if (!makeContextCurrent()) |
2459 |
if (!makeContextCurrent()) |
| 2466 |
return; |
2460 |
return; |
|
Lines 2468-2474
void GraphicsContextGLOpenGL::uniform1ui(GCGLint location, GCGLuint v0)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec201
|
| 2468 |
gl::Uniform1ui(location, v0); |
2462 |
gl::Uniform1ui(location, v0); |
| 2469 |
} |
2463 |
} |
| 2470 |
|
2464 |
|
| 2471 |
void GraphicsContextGLOpenGL::uniform2ui(GCGLint location, GCGLuint v0, GCGLuint v1) |
2465 |
void GraphicsContextGLANGLE::uniform2ui(GCGLint location, GCGLuint v0, GCGLuint v1) |
| 2472 |
{ |
2466 |
{ |
| 2473 |
if (!makeContextCurrent()) |
2467 |
if (!makeContextCurrent()) |
| 2474 |
return; |
2468 |
return; |
|
Lines 2476-2482
void GraphicsContextGLOpenGL::uniform2ui(GCGLint location, GCGLuint v0, GCGLuint
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec202
|
| 2476 |
gl::Uniform2ui(location, v0, v1); |
2470 |
gl::Uniform2ui(location, v0, v1); |
| 2477 |
} |
2471 |
} |
| 2478 |
|
2472 |
|
| 2479 |
void GraphicsContextGLOpenGL::uniform3ui(GCGLint location, GCGLuint v0, GCGLuint v1, GCGLuint v2) |
2473 |
void GraphicsContextGLANGLE::uniform3ui(GCGLint location, GCGLuint v0, GCGLuint v1, GCGLuint v2) |
| 2480 |
{ |
2474 |
{ |
| 2481 |
if (!makeContextCurrent()) |
2475 |
if (!makeContextCurrent()) |
| 2482 |
return; |
2476 |
return; |
|
Lines 2484-2490
void GraphicsContextGLOpenGL::uniform3ui(GCGLint location, GCGLuint v0, GCGLuint
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec203
|
| 2484 |
gl::Uniform3ui(location, v0, v1, v2); |
2478 |
gl::Uniform3ui(location, v0, v1, v2); |
| 2485 |
} |
2479 |
} |
| 2486 |
|
2480 |
|
| 2487 |
void GraphicsContextGLOpenGL::uniform4ui(GCGLint location, GCGLuint v0, GCGLuint v1, GCGLuint v2, GCGLuint v3) |
2481 |
void GraphicsContextGLANGLE::uniform4ui(GCGLint location, GCGLuint v0, GCGLuint v1, GCGLuint v2, GCGLuint v3) |
| 2488 |
{ |
2482 |
{ |
| 2489 |
if (!makeContextCurrent()) |
2483 |
if (!makeContextCurrent()) |
| 2490 |
return; |
2484 |
return; |
|
Lines 2492-2498
void GraphicsContextGLOpenGL::uniform4ui(GCGLint location, GCGLuint v0, GCGLuint
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec204
|
| 2492 |
gl::Uniform4ui(location, v0, v1, v2, v3); |
2486 |
gl::Uniform4ui(location, v0, v1, v2, v3); |
| 2493 |
} |
2487 |
} |
| 2494 |
|
2488 |
|
| 2495 |
void GraphicsContextGLOpenGL::uniform1uiv(GCGLint location, GCGLSpan<const GCGLuint> data) |
2489 |
void GraphicsContextGLANGLE::uniform1uiv(GCGLint location, GCGLSpan<const GCGLuint> data) |
| 2496 |
{ |
2490 |
{ |
| 2497 |
if (!makeContextCurrent()) |
2491 |
if (!makeContextCurrent()) |
| 2498 |
return; |
2492 |
return; |
|
Lines 2500-2506
void GraphicsContextGLOpenGL::uniform1uiv(GCGLint location, GCGLSpan<const GCGLu
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec205
|
| 2500 |
gl::Uniform1uiv(location, data.bufSize, data.data); |
2494 |
gl::Uniform1uiv(location, data.bufSize, data.data); |
| 2501 |
} |
2495 |
} |
| 2502 |
|
2496 |
|
| 2503 |
void GraphicsContextGLOpenGL::uniform2uiv(GCGLint location, GCGLSpan<const GCGLuint> data) |
2497 |
void GraphicsContextGLANGLE::uniform2uiv(GCGLint location, GCGLSpan<const GCGLuint> data) |
| 2504 |
{ |
2498 |
{ |
| 2505 |
ASSERT(!(data.bufSize % 2)); |
2499 |
ASSERT(!(data.bufSize % 2)); |
| 2506 |
if (!makeContextCurrent()) |
2500 |
if (!makeContextCurrent()) |
|
Lines 2509-2515
void GraphicsContextGLOpenGL::uniform2uiv(GCGLint location, GCGLSpan<const GCGLu
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec206
|
| 2509 |
gl::Uniform2uiv(location, data.bufSize / 2, data.data); |
2503 |
gl::Uniform2uiv(location, data.bufSize / 2, data.data); |
| 2510 |
} |
2504 |
} |
| 2511 |
|
2505 |
|
| 2512 |
void GraphicsContextGLOpenGL::uniform3uiv(GCGLint location, GCGLSpan<const GCGLuint> data) |
2506 |
void GraphicsContextGLANGLE::uniform3uiv(GCGLint location, GCGLSpan<const GCGLuint> data) |
| 2513 |
{ |
2507 |
{ |
| 2514 |
ASSERT(!(data.bufSize % 3)); |
2508 |
ASSERT(!(data.bufSize % 3)); |
| 2515 |
if (!makeContextCurrent()) |
2509 |
if (!makeContextCurrent()) |
|
Lines 2518-2524
void GraphicsContextGLOpenGL::uniform3uiv(GCGLint location, GCGLSpan<const GCGLu
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec207
|
| 2518 |
gl::Uniform3uiv(location, data.bufSize / 3, data.data); |
2512 |
gl::Uniform3uiv(location, data.bufSize / 3, data.data); |
| 2519 |
} |
2513 |
} |
| 2520 |
|
2514 |
|
| 2521 |
void GraphicsContextGLOpenGL::uniform4uiv(GCGLint location, GCGLSpan<const GCGLuint> data) |
2515 |
void GraphicsContextGLANGLE::uniform4uiv(GCGLint location, GCGLSpan<const GCGLuint> data) |
| 2522 |
{ |
2516 |
{ |
| 2523 |
ASSERT(!(data.bufSize % 4)); |
2517 |
ASSERT(!(data.bufSize % 4)); |
| 2524 |
if (!makeContextCurrent()) |
2518 |
if (!makeContextCurrent()) |
|
Lines 2527-2533
void GraphicsContextGLOpenGL::uniform4uiv(GCGLint location, GCGLSpan<const GCGLu
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec208
|
| 2527 |
gl::Uniform4uiv(location, data.bufSize / 4, data.data); |
2521 |
gl::Uniform4uiv(location, data.bufSize / 4, data.data); |
| 2528 |
} |
2522 |
} |
| 2529 |
|
2523 |
|
| 2530 |
void GraphicsContextGLOpenGL::uniformMatrix2x3fv(GCGLint location, GCGLboolean transpose, GCGLSpan<const GCGLfloat> data) |
2524 |
void GraphicsContextGLANGLE::uniformMatrix2x3fv(GCGLint location, GCGLboolean transpose, GCGLSpan<const GCGLfloat> data) |
| 2531 |
{ |
2525 |
{ |
| 2532 |
ASSERT(!(data.bufSize % 6)); |
2526 |
ASSERT(!(data.bufSize % 6)); |
| 2533 |
if (!makeContextCurrent()) |
2527 |
if (!makeContextCurrent()) |
|
Lines 2536-2542
void GraphicsContextGLOpenGL::uniformMatrix2x3fv(GCGLint location, GCGLboolean t
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec209
|
| 2536 |
gl::UniformMatrix2x3fv(location, data.bufSize / 6, transpose, data.data); |
2530 |
gl::UniformMatrix2x3fv(location, data.bufSize / 6, transpose, data.data); |
| 2537 |
} |
2531 |
} |
| 2538 |
|
2532 |
|
| 2539 |
void GraphicsContextGLOpenGL::uniformMatrix3x2fv(GCGLint location, GCGLboolean transpose, GCGLSpan<const GCGLfloat> data) |
2533 |
void GraphicsContextGLANGLE::uniformMatrix3x2fv(GCGLint location, GCGLboolean transpose, GCGLSpan<const GCGLfloat> data) |
| 2540 |
{ |
2534 |
{ |
| 2541 |
ASSERT(!(data.bufSize % 6)); |
2535 |
ASSERT(!(data.bufSize % 6)); |
| 2542 |
if (!makeContextCurrent()) |
2536 |
if (!makeContextCurrent()) |
|
Lines 2545-2551
void GraphicsContextGLOpenGL::uniformMatrix3x2fv(GCGLint location, GCGLboolean t
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec210
|
| 2545 |
gl::UniformMatrix3x2fv(location, data.bufSize / 6, transpose, data.data); |
2539 |
gl::UniformMatrix3x2fv(location, data.bufSize / 6, transpose, data.data); |
| 2546 |
} |
2540 |
} |
| 2547 |
|
2541 |
|
| 2548 |
void GraphicsContextGLOpenGL::uniformMatrix2x4fv(GCGLint location, GCGLboolean transpose, GCGLSpan<const GCGLfloat> data) |
2542 |
void GraphicsContextGLANGLE::uniformMatrix2x4fv(GCGLint location, GCGLboolean transpose, GCGLSpan<const GCGLfloat> data) |
| 2549 |
{ |
2543 |
{ |
| 2550 |
ASSERT(!(data.bufSize % 8)); |
2544 |
ASSERT(!(data.bufSize % 8)); |
| 2551 |
if (!makeContextCurrent()) |
2545 |
if (!makeContextCurrent()) |
|
Lines 2554-2560
void GraphicsContextGLOpenGL::uniformMatrix2x4fv(GCGLint location, GCGLboolean t
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec211
|
| 2554 |
gl::UniformMatrix2x4fv(location, data.bufSize / 8, transpose, data.data); |
2548 |
gl::UniformMatrix2x4fv(location, data.bufSize / 8, transpose, data.data); |
| 2555 |
} |
2549 |
} |
| 2556 |
|
2550 |
|
| 2557 |
void GraphicsContextGLOpenGL::uniformMatrix4x2fv(GCGLint location, GCGLboolean transpose, GCGLSpan<const GCGLfloat> data) |
2551 |
void GraphicsContextGLANGLE::uniformMatrix4x2fv(GCGLint location, GCGLboolean transpose, GCGLSpan<const GCGLfloat> data) |
| 2558 |
{ |
2552 |
{ |
| 2559 |
ASSERT(!(data.bufSize % 8)); |
2553 |
ASSERT(!(data.bufSize % 8)); |
| 2560 |
if (!makeContextCurrent()) |
2554 |
if (!makeContextCurrent()) |
|
Lines 2563-2569
void GraphicsContextGLOpenGL::uniformMatrix4x2fv(GCGLint location, GCGLboolean t
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec212
|
| 2563 |
gl::UniformMatrix4x2fv(location, data.bufSize / 8, transpose, data.data); |
2557 |
gl::UniformMatrix4x2fv(location, data.bufSize / 8, transpose, data.data); |
| 2564 |
} |
2558 |
} |
| 2565 |
|
2559 |
|
| 2566 |
void GraphicsContextGLOpenGL::uniformMatrix3x4fv(GCGLint location, GCGLboolean transpose, GCGLSpan<const GCGLfloat> data) |
2560 |
void GraphicsContextGLANGLE::uniformMatrix3x4fv(GCGLint location, GCGLboolean transpose, GCGLSpan<const GCGLfloat> data) |
| 2567 |
{ |
2561 |
{ |
| 2568 |
ASSERT(!(data.bufSize % 12)); |
2562 |
ASSERT(!(data.bufSize % 12)); |
| 2569 |
if (!makeContextCurrent()) |
2563 |
if (!makeContextCurrent()) |
|
Lines 2572-2578
void GraphicsContextGLOpenGL::uniformMatrix3x4fv(GCGLint location, GCGLboolean t
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec213
|
| 2572 |
gl::UniformMatrix3x4fv(location, data.bufSize / 12, transpose, data.data); |
2566 |
gl::UniformMatrix3x4fv(location, data.bufSize / 12, transpose, data.data); |
| 2573 |
} |
2567 |
} |
| 2574 |
|
2568 |
|
| 2575 |
void GraphicsContextGLOpenGL::uniformMatrix4x3fv(GCGLint location, GCGLboolean transpose, GCGLSpan<const GCGLfloat> data) |
2569 |
void GraphicsContextGLANGLE::uniformMatrix4x3fv(GCGLint location, GCGLboolean transpose, GCGLSpan<const GCGLfloat> data) |
| 2576 |
{ |
2570 |
{ |
| 2577 |
ASSERT(!(data.bufSize % 12)); |
2571 |
ASSERT(!(data.bufSize % 12)); |
| 2578 |
if (!makeContextCurrent()) |
2572 |
if (!makeContextCurrent()) |
|
Lines 2581-2587
void GraphicsContextGLOpenGL::uniformMatrix4x3fv(GCGLint location, GCGLboolean t
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec214
|
| 2581 |
gl::UniformMatrix4x3fv(location, data.bufSize / 12, transpose, data.data); |
2575 |
gl::UniformMatrix4x3fv(location, data.bufSize / 12, transpose, data.data); |
| 2582 |
} |
2576 |
} |
| 2583 |
|
2577 |
|
| 2584 |
void GraphicsContextGLOpenGL::vertexAttribI4i(GCGLuint index, GCGLint x, GCGLint y, GCGLint z, GCGLint w) |
2578 |
void GraphicsContextGLANGLE::vertexAttribI4i(GCGLuint index, GCGLint x, GCGLint y, GCGLint z, GCGLint w) |
| 2585 |
{ |
2579 |
{ |
| 2586 |
if (!makeContextCurrent()) |
2580 |
if (!makeContextCurrent()) |
| 2587 |
return; |
2581 |
return; |
|
Lines 2589-2595
void GraphicsContextGLOpenGL::vertexAttribI4i(GCGLuint index, GCGLint x, GCGLint
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec215
|
| 2589 |
gl::VertexAttribI4i(index, x, y, z, w); |
2583 |
gl::VertexAttribI4i(index, x, y, z, w); |
| 2590 |
} |
2584 |
} |
| 2591 |
|
2585 |
|
| 2592 |
void GraphicsContextGLOpenGL::vertexAttribI4iv(GCGLuint index, GCGLSpan<const GCGLint, 4> values) |
2586 |
void GraphicsContextGLANGLE::vertexAttribI4iv(GCGLuint index, GCGLSpan<const GCGLint, 4> values) |
| 2593 |
{ |
2587 |
{ |
| 2594 |
if (!makeContextCurrent()) |
2588 |
if (!makeContextCurrent()) |
| 2595 |
return; |
2589 |
return; |
|
Lines 2597-2603
void GraphicsContextGLOpenGL::vertexAttribI4iv(GCGLuint index, GCGLSpan<const GC
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec216
|
| 2597 |
gl::VertexAttribI4iv(index, values.data); |
2591 |
gl::VertexAttribI4iv(index, values.data); |
| 2598 |
} |
2592 |
} |
| 2599 |
|
2593 |
|
| 2600 |
void GraphicsContextGLOpenGL::vertexAttribI4ui(GCGLuint index, GCGLuint x, GCGLuint y, GCGLuint z, GCGLuint w) |
2594 |
void GraphicsContextGLANGLE::vertexAttribI4ui(GCGLuint index, GCGLuint x, GCGLuint y, GCGLuint z, GCGLuint w) |
| 2601 |
{ |
2595 |
{ |
| 2602 |
if (!makeContextCurrent()) |
2596 |
if (!makeContextCurrent()) |
| 2603 |
return; |
2597 |
return; |
|
Lines 2605-2611
void GraphicsContextGLOpenGL::vertexAttribI4ui(GCGLuint index, GCGLuint x, GCGLu
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec217
|
| 2605 |
gl::VertexAttribI4ui(index, x, y, z, w); |
2599 |
gl::VertexAttribI4ui(index, x, y, z, w); |
| 2606 |
} |
2600 |
} |
| 2607 |
|
2601 |
|
| 2608 |
void GraphicsContextGLOpenGL::vertexAttribI4uiv(GCGLuint index, GCGLSpan<const GCGLuint, 4> values) |
2602 |
void GraphicsContextGLANGLE::vertexAttribI4uiv(GCGLuint index, GCGLSpan<const GCGLuint, 4> values) |
| 2609 |
{ |
2603 |
{ |
| 2610 |
if (!makeContextCurrent()) |
2604 |
if (!makeContextCurrent()) |
| 2611 |
return; |
2605 |
return; |
|
Lines 2613-2619
void GraphicsContextGLOpenGL::vertexAttribI4uiv(GCGLuint index, GCGLSpan<const G
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec218
|
| 2613 |
gl::VertexAttribI4uiv(index, values.data); |
2607 |
gl::VertexAttribI4uiv(index, values.data); |
| 2614 |
} |
2608 |
} |
| 2615 |
|
2609 |
|
| 2616 |
void GraphicsContextGLOpenGL::drawRangeElements(GCGLenum mode, GCGLuint start, GCGLuint end, GCGLsizei count, GCGLenum type, GCGLintptr offset) |
2610 |
void GraphicsContextGLANGLE::drawRangeElements(GCGLenum mode, GCGLuint start, GCGLuint end, GCGLsizei count, GCGLenum type, GCGLintptr offset) |
| 2617 |
{ |
2611 |
{ |
| 2618 |
if (!makeContextCurrent()) |
2612 |
if (!makeContextCurrent()) |
| 2619 |
return; |
2613 |
return; |
|
Lines 2621-2627
void GraphicsContextGLOpenGL::drawRangeElements(GCGLenum mode, GCGLuint start, G
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec219
|
| 2621 |
gl::DrawRangeElements(mode, start, end, count, type, reinterpret_cast<void*>(offset)); |
2615 |
gl::DrawRangeElements(mode, start, end, count, type, reinterpret_cast<void*>(offset)); |
| 2622 |
} |
2616 |
} |
| 2623 |
|
2617 |
|
| 2624 |
void GraphicsContextGLOpenGL::drawBuffers(GCGLSpan<const GCGLenum> bufs) |
2618 |
void GraphicsContextGLANGLE::drawBuffers(GCGLSpan<const GCGLenum> bufs) |
| 2625 |
{ |
2619 |
{ |
| 2626 |
if (!makeContextCurrent()) |
2620 |
if (!makeContextCurrent()) |
| 2627 |
return; |
2621 |
return; |
|
Lines 2629-2635
void GraphicsContextGLOpenGL::drawBuffers(GCGLSpan<const GCGLenum> bufs)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec220
|
| 2629 |
gl::DrawBuffers(bufs.bufSize, bufs.data); |
2623 |
gl::DrawBuffers(bufs.bufSize, bufs.data); |
| 2630 |
} |
2624 |
} |
| 2631 |
|
2625 |
|
| 2632 |
void GraphicsContextGLOpenGL::clearBufferiv(GCGLenum buffer, GCGLint drawbuffer, GCGLSpan<const GCGLint> values) |
2626 |
void GraphicsContextGLANGLE::clearBufferiv(GCGLenum buffer, GCGLint drawbuffer, GCGLSpan<const GCGLint> values) |
| 2633 |
{ |
2627 |
{ |
| 2634 |
if (!makeContextCurrent()) |
2628 |
if (!makeContextCurrent()) |
| 2635 |
return; |
2629 |
return; |
|
Lines 2637-2643
void GraphicsContextGLOpenGL::clearBufferiv(GCGLenum buffer, GCGLint drawbuffer,
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec221
|
| 2637 |
gl::ClearBufferiv(buffer, drawbuffer, values.data); |
2631 |
gl::ClearBufferiv(buffer, drawbuffer, values.data); |
| 2638 |
} |
2632 |
} |
| 2639 |
|
2633 |
|
| 2640 |
void GraphicsContextGLOpenGL::clearBufferuiv(GCGLenum buffer, GCGLint drawbuffer, GCGLSpan<const GCGLuint> values) |
2634 |
void GraphicsContextGLANGLE::clearBufferuiv(GCGLenum buffer, GCGLint drawbuffer, GCGLSpan<const GCGLuint> values) |
| 2641 |
{ |
2635 |
{ |
| 2642 |
if (!makeContextCurrent()) |
2636 |
if (!makeContextCurrent()) |
| 2643 |
return; |
2637 |
return; |
|
Lines 2645-2651
void GraphicsContextGLOpenGL::clearBufferuiv(GCGLenum buffer, GCGLint drawbuffer
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec222
|
| 2645 |
gl::ClearBufferuiv(buffer, drawbuffer, values.data); |
2639 |
gl::ClearBufferuiv(buffer, drawbuffer, values.data); |
| 2646 |
} |
2640 |
} |
| 2647 |
|
2641 |
|
| 2648 |
void GraphicsContextGLOpenGL::clearBufferfv(GCGLenum buffer, GCGLint drawbuffer, GCGLSpan<const GCGLfloat> values) |
2642 |
void GraphicsContextGLANGLE::clearBufferfv(GCGLenum buffer, GCGLint drawbuffer, GCGLSpan<const GCGLfloat> values) |
| 2649 |
{ |
2643 |
{ |
| 2650 |
if (!makeContextCurrent()) |
2644 |
if (!makeContextCurrent()) |
| 2651 |
return; |
2645 |
return; |
|
Lines 2653-2659
void GraphicsContextGLOpenGL::clearBufferfv(GCGLenum buffer, GCGLint drawbuffer,
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec223
|
| 2653 |
gl::ClearBufferfv(buffer, drawbuffer, values.data); |
2647 |
gl::ClearBufferfv(buffer, drawbuffer, values.data); |
| 2654 |
} |
2648 |
} |
| 2655 |
|
2649 |
|
| 2656 |
void GraphicsContextGLOpenGL::clearBufferfi(GCGLenum buffer, GCGLint drawbuffer, GCGLfloat depth, GCGLint stencil) |
2650 |
void GraphicsContextGLANGLE::clearBufferfi(GCGLenum buffer, GCGLint drawbuffer, GCGLfloat depth, GCGLint stencil) |
| 2657 |
{ |
2651 |
{ |
| 2658 |
if (!makeContextCurrent()) |
2652 |
if (!makeContextCurrent()) |
| 2659 |
return; |
2653 |
return; |
|
Lines 2661-2667
void GraphicsContextGLOpenGL::clearBufferfi(GCGLenum buffer, GCGLint drawbuffer,
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec224
|
| 2661 |
gl::ClearBufferfi(buffer, drawbuffer, depth, stencil); |
2655 |
gl::ClearBufferfi(buffer, drawbuffer, depth, stencil); |
| 2662 |
} |
2656 |
} |
| 2663 |
|
2657 |
|
| 2664 |
void GraphicsContextGLOpenGL::deleteQuery(PlatformGLObject query) |
2658 |
void GraphicsContextGLANGLE::deleteQuery(PlatformGLObject query) |
| 2665 |
{ |
2659 |
{ |
| 2666 |
if (!makeContextCurrent()) |
2660 |
if (!makeContextCurrent()) |
| 2667 |
return; |
2661 |
return; |
|
Lines 2669-2675
void GraphicsContextGLOpenGL::deleteQuery(PlatformGLObject query)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec225
|
| 2669 |
gl::DeleteQueries(1, &query); |
2663 |
gl::DeleteQueries(1, &query); |
| 2670 |
} |
2664 |
} |
| 2671 |
|
2665 |
|
| 2672 |
GCGLboolean GraphicsContextGLOpenGL::isQuery(PlatformGLObject query) |
2666 |
GCGLboolean GraphicsContextGLANGLE::isQuery(PlatformGLObject query) |
| 2673 |
{ |
2667 |
{ |
| 2674 |
if (!makeContextCurrent()) |
2668 |
if (!makeContextCurrent()) |
| 2675 |
return GL_FALSE; |
2669 |
return GL_FALSE; |
|
Lines 2677-2683
GCGLboolean GraphicsContextGLOpenGL::isQuery(PlatformGLObject query)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec226
|
| 2677 |
return gl::IsQuery(query); |
2671 |
return gl::IsQuery(query); |
| 2678 |
} |
2672 |
} |
| 2679 |
|
2673 |
|
| 2680 |
PlatformGLObject GraphicsContextGLOpenGL::getQuery(GCGLenum target, GCGLenum pname) |
2674 |
PlatformGLObject GraphicsContextGLANGLE::getQuery(GCGLenum target, GCGLenum pname) |
| 2681 |
{ |
2675 |
{ |
| 2682 |
if (!makeContextCurrent()) |
2676 |
if (!makeContextCurrent()) |
| 2683 |
return 0; |
2677 |
return 0; |
|
Lines 2687-2693
PlatformGLObject GraphicsContextGLOpenGL::getQuery(GCGLenum target, GCGLenum pna
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec227
|
| 2687 |
return static_cast<PlatformGLObject>(value); |
2681 |
return static_cast<PlatformGLObject>(value); |
| 2688 |
} |
2682 |
} |
| 2689 |
|
2683 |
|
| 2690 |
PlatformGLObject GraphicsContextGLOpenGL::createSampler() |
2684 |
PlatformGLObject GraphicsContextGLANGLE::createSampler() |
| 2691 |
{ |
2685 |
{ |
| 2692 |
if (!makeContextCurrent()) |
2686 |
if (!makeContextCurrent()) |
| 2693 |
return 0; |
2687 |
return 0; |
|
Lines 2697-2703
PlatformGLObject GraphicsContextGLOpenGL::createSampler()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec228
|
| 2697 |
return name; |
2691 |
return name; |
| 2698 |
} |
2692 |
} |
| 2699 |
|
2693 |
|
| 2700 |
void GraphicsContextGLOpenGL::deleteSampler(PlatformGLObject sampler) |
2694 |
void GraphicsContextGLANGLE::deleteSampler(PlatformGLObject sampler) |
| 2701 |
{ |
2695 |
{ |
| 2702 |
if (!makeContextCurrent()) |
2696 |
if (!makeContextCurrent()) |
| 2703 |
return; |
2697 |
return; |
|
Lines 2705-2711
void GraphicsContextGLOpenGL::deleteSampler(PlatformGLObject sampler)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec229
|
| 2705 |
gl::DeleteSamplers(1, &sampler); |
2699 |
gl::DeleteSamplers(1, &sampler); |
| 2706 |
} |
2700 |
} |
| 2707 |
|
2701 |
|
| 2708 |
GCGLboolean GraphicsContextGLOpenGL::isSampler(PlatformGLObject sampler) |
2702 |
GCGLboolean GraphicsContextGLANGLE::isSampler(PlatformGLObject sampler) |
| 2709 |
{ |
2703 |
{ |
| 2710 |
if (!makeContextCurrent()) |
2704 |
if (!makeContextCurrent()) |
| 2711 |
return GL_FALSE; |
2705 |
return GL_FALSE; |
|
Lines 2713-2719
GCGLboolean GraphicsContextGLOpenGL::isSampler(PlatformGLObject sampler)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec230
|
| 2713 |
return gl::IsSampler(sampler); |
2707 |
return gl::IsSampler(sampler); |
| 2714 |
} |
2708 |
} |
| 2715 |
|
2709 |
|
| 2716 |
void GraphicsContextGLOpenGL::bindSampler(GCGLuint unit, PlatformGLObject sampler) |
2710 |
void GraphicsContextGLANGLE::bindSampler(GCGLuint unit, PlatformGLObject sampler) |
| 2717 |
{ |
2711 |
{ |
| 2718 |
if (!makeContextCurrent()) |
2712 |
if (!makeContextCurrent()) |
| 2719 |
return; |
2713 |
return; |
|
Lines 2721-2727
void GraphicsContextGLOpenGL::bindSampler(GCGLuint unit, PlatformGLObject sample
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec231
|
| 2721 |
gl::BindSampler(unit, sampler); |
2715 |
gl::BindSampler(unit, sampler); |
| 2722 |
} |
2716 |
} |
| 2723 |
|
2717 |
|
| 2724 |
void GraphicsContextGLOpenGL::samplerParameteri(PlatformGLObject sampler, GCGLenum pname, GCGLint param) |
2718 |
void GraphicsContextGLANGLE::samplerParameteri(PlatformGLObject sampler, GCGLenum pname, GCGLint param) |
| 2725 |
{ |
2719 |
{ |
| 2726 |
if (!makeContextCurrent()) |
2720 |
if (!makeContextCurrent()) |
| 2727 |
return; |
2721 |
return; |
|
Lines 2729-2735
void GraphicsContextGLOpenGL::samplerParameteri(PlatformGLObject sampler, GCGLen
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec232
|
| 2729 |
gl::SamplerParameteri(sampler, pname, param); |
2723 |
gl::SamplerParameteri(sampler, pname, param); |
| 2730 |
} |
2724 |
} |
| 2731 |
|
2725 |
|
| 2732 |
void GraphicsContextGLOpenGL::samplerParameterf(PlatformGLObject sampler, GCGLenum pname, GCGLfloat param) |
2726 |
void GraphicsContextGLANGLE::samplerParameterf(PlatformGLObject sampler, GCGLenum pname, GCGLfloat param) |
| 2733 |
{ |
2727 |
{ |
| 2734 |
if (!makeContextCurrent()) |
2728 |
if (!makeContextCurrent()) |
| 2735 |
return; |
2729 |
return; |
|
Lines 2737-2743
void GraphicsContextGLOpenGL::samplerParameterf(PlatformGLObject sampler, GCGLen
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec233
|
| 2737 |
gl::SamplerParameterf(sampler, pname, param); |
2731 |
gl::SamplerParameterf(sampler, pname, param); |
| 2738 |
} |
2732 |
} |
| 2739 |
|
2733 |
|
| 2740 |
GCGLfloat GraphicsContextGLOpenGL::getSamplerParameterf(PlatformGLObject sampler, GCGLenum pname) |
2734 |
GCGLfloat GraphicsContextGLANGLE::getSamplerParameterf(PlatformGLObject sampler, GCGLenum pname) |
| 2741 |
{ |
2735 |
{ |
| 2742 |
GCGLfloat value = 0.f; |
2736 |
GCGLfloat value = 0.f; |
| 2743 |
if (!makeContextCurrent()) |
2737 |
if (!makeContextCurrent()) |
|
Lines 2747-2753
GCGLfloat GraphicsContextGLOpenGL::getSamplerParameterf(PlatformGLObject sampler
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec234
|
| 2747 |
return value; |
2741 |
return value; |
| 2748 |
} |
2742 |
} |
| 2749 |
|
2743 |
|
| 2750 |
GCGLint GraphicsContextGLOpenGL::getSamplerParameteri(PlatformGLObject sampler, GCGLenum pname) |
2744 |
GCGLint GraphicsContextGLANGLE::getSamplerParameteri(PlatformGLObject sampler, GCGLenum pname) |
| 2751 |
{ |
2745 |
{ |
| 2752 |
GCGLint value = 0; |
2746 |
GCGLint value = 0; |
| 2753 |
if (!makeContextCurrent()) |
2747 |
if (!makeContextCurrent()) |
|
Lines 2757-2763
GCGLint GraphicsContextGLOpenGL::getSamplerParameteri(PlatformGLObject sampler,
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec235
|
| 2757 |
return value; |
2751 |
return value; |
| 2758 |
} |
2752 |
} |
| 2759 |
|
2753 |
|
| 2760 |
GCGLsync GraphicsContextGLOpenGL::fenceSync(GCGLenum condition, GCGLbitfield flags) |
2754 |
GCGLsync GraphicsContextGLANGLE::fenceSync(GCGLenum condition, GCGLbitfield flags) |
| 2761 |
{ |
2755 |
{ |
| 2762 |
if (!makeContextCurrent()) |
2756 |
if (!makeContextCurrent()) |
| 2763 |
return 0; |
2757 |
return 0; |
|
Lines 2765-2771
GCGLsync GraphicsContextGLOpenGL::fenceSync(GCGLenum condition, GCGLbitfield fla
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec236
|
| 2765 |
return gl::FenceSync(condition, flags); |
2759 |
return gl::FenceSync(condition, flags); |
| 2766 |
} |
2760 |
} |
| 2767 |
|
2761 |
|
| 2768 |
GCGLboolean GraphicsContextGLOpenGL::isSync(GCGLsync sync) |
2762 |
GCGLboolean GraphicsContextGLANGLE::isSync(GCGLsync sync) |
| 2769 |
{ |
2763 |
{ |
| 2770 |
if (!makeContextCurrent()) |
2764 |
if (!makeContextCurrent()) |
| 2771 |
return GL_FALSE; |
2765 |
return GL_FALSE; |
|
Lines 2773-2779
GCGLboolean GraphicsContextGLOpenGL::isSync(GCGLsync sync)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec237
|
| 2773 |
return gl::IsSync(sync); |
2767 |
return gl::IsSync(sync); |
| 2774 |
} |
2768 |
} |
| 2775 |
|
2769 |
|
| 2776 |
void GraphicsContextGLOpenGL::deleteSync(GCGLsync sync) |
2770 |
void GraphicsContextGLANGLE::deleteSync(GCGLsync sync) |
| 2777 |
{ |
2771 |
{ |
| 2778 |
if (!makeContextCurrent()) |
2772 |
if (!makeContextCurrent()) |
| 2779 |
return; |
2773 |
return; |
|
Lines 2781-2787
void GraphicsContextGLOpenGL::deleteSync(GCGLsync sync)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec238
|
| 2781 |
gl::DeleteSync(sync); |
2775 |
gl::DeleteSync(sync); |
| 2782 |
} |
2776 |
} |
| 2783 |
|
2777 |
|
| 2784 |
GCGLenum GraphicsContextGLOpenGL::clientWaitSync(GCGLsync sync, GCGLbitfield flags, GCGLuint64 timeout) |
2778 |
GCGLenum GraphicsContextGLANGLE::clientWaitSync(GCGLsync sync, GCGLbitfield flags, GCGLuint64 timeout) |
| 2785 |
{ |
2779 |
{ |
| 2786 |
if (!makeContextCurrent()) |
2780 |
if (!makeContextCurrent()) |
| 2787 |
return GL_WAIT_FAILED; |
2781 |
return GL_WAIT_FAILED; |
|
Lines 2789-2795
GCGLenum GraphicsContextGLOpenGL::clientWaitSync(GCGLsync sync, GCGLbitfield fla
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec239
|
| 2789 |
return gl::ClientWaitSync(sync, flags, timeout); |
2783 |
return gl::ClientWaitSync(sync, flags, timeout); |
| 2790 |
} |
2784 |
} |
| 2791 |
|
2785 |
|
| 2792 |
void GraphicsContextGLOpenGL::waitSync(GCGLsync sync, GCGLbitfield flags, GCGLint64 timeout) |
2786 |
void GraphicsContextGLANGLE::waitSync(GCGLsync sync, GCGLbitfield flags, GCGLint64 timeout) |
| 2793 |
{ |
2787 |
{ |
| 2794 |
if (!makeContextCurrent()) |
2788 |
if (!makeContextCurrent()) |
| 2795 |
return; |
2789 |
return; |
|
Lines 2797-2803
void GraphicsContextGLOpenGL::waitSync(GCGLsync sync, GCGLbitfield flags, GCGLin
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec240
|
| 2797 |
gl::WaitSync(sync, flags, timeout); |
2791 |
gl::WaitSync(sync, flags, timeout); |
| 2798 |
} |
2792 |
} |
| 2799 |
|
2793 |
|
| 2800 |
GCGLint GraphicsContextGLOpenGL::getSynci(GCGLsync sync, GCGLenum pname) |
2794 |
GCGLint GraphicsContextGLANGLE::getSynci(GCGLsync sync, GCGLenum pname) |
| 2801 |
{ |
2795 |
{ |
| 2802 |
GCGLint value = 0; |
2796 |
GCGLint value = 0; |
| 2803 |
if (!makeContextCurrent()) |
2797 |
if (!makeContextCurrent()) |
|
Lines 2807-2813
GCGLint GraphicsContextGLOpenGL::getSynci(GCGLsync sync, GCGLenum pname)
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec241
|
| 2807 |
return value; |
2801 |
return value; |
| 2808 |
} |
2802 |
} |
| 2809 |
|
2803 |
|
| 2810 |
void GraphicsContextGLOpenGL::pauseTransformFeedback() |
2804 |
void GraphicsContextGLANGLE::pauseTransformFeedback() |
| 2811 |
{ |
2805 |
{ |
| 2812 |
if (!makeContextCurrent()) |
2806 |
if (!makeContextCurrent()) |
| 2813 |
return; |
2807 |
return; |
|
Lines 2815-2821
void GraphicsContextGLOpenGL::pauseTransformFeedback()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec242
|
| 2815 |
gl::PauseTransformFeedback(); |
2809 |
gl::PauseTransformFeedback(); |
| 2816 |
} |
2810 |
} |
| 2817 |
|
2811 |
|
| 2818 |
void GraphicsContextGLOpenGL::resumeTransformFeedback() |
2812 |
void GraphicsContextGLANGLE::resumeTransformFeedback() |
| 2819 |
{ |
2813 |
{ |
| 2820 |
if (!makeContextCurrent()) |
2814 |
if (!makeContextCurrent()) |
| 2821 |
return; |
2815 |
return; |
|
Lines 2823-2829
void GraphicsContextGLOpenGL::resumeTransformFeedback()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec243
|
| 2823 |
gl::ResumeTransformFeedback(); |
2817 |
gl::ResumeTransformFeedback(); |
| 2824 |
} |
2818 |
} |
| 2825 |
|
2819 |
|
| 2826 |
void GraphicsContextGLOpenGL::bindBufferRange(GCGLenum target, GCGLuint index, PlatformGLObject buffer, GCGLintptr offset, GCGLsizeiptr size) |
2820 |
void GraphicsContextGLANGLE::bindBufferRange(GCGLenum target, GCGLuint index, PlatformGLObject buffer, GCGLintptr offset, GCGLsizeiptr size) |
| 2827 |
{ |
2821 |
{ |
| 2828 |
if (!makeContextCurrent()) |
2822 |
if (!makeContextCurrent()) |
| 2829 |
return; |
2823 |
return; |
|
Lines 2831-2837
void GraphicsContextGLOpenGL::bindBufferRange(GCGLenum target, GCGLuint index, P
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec244
|
| 2831 |
gl::BindBufferRange(target, index, buffer, offset, size); |
2825 |
gl::BindBufferRange(target, index, buffer, offset, size); |
| 2832 |
} |
2826 |
} |
| 2833 |
|
2827 |
|
| 2834 |
Vector<GCGLuint> GraphicsContextGLOpenGL::getUniformIndices(PlatformGLObject program, const Vector<String>& uniformNames) |
2828 |
Vector<GCGLuint> GraphicsContextGLANGLE::getUniformIndices(PlatformGLObject program, const Vector<String>& uniformNames) |
| 2835 |
{ |
2829 |
{ |
| 2836 |
ASSERT(program); |
2830 |
ASSERT(program); |
| 2837 |
if (!makeContextCurrent()) |
2831 |
if (!makeContextCurrent()) |
|
Lines 2844-2857
Vector<GCGLuint> GraphicsContextGLOpenGL::getUniformIndices(PlatformGLObject pro
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec245
|
| 2844 |
return result; |
2838 |
return result; |
| 2845 |
} |
2839 |
} |
| 2846 |
|
2840 |
|
| 2847 |
void GraphicsContextGLOpenGL::getActiveUniformBlockiv(GCGLuint program, GCGLuint uniformBlockIndex, GCGLenum pname, GCGLSpan<GCGLint> params) |
2841 |
void GraphicsContextGLANGLE::getActiveUniformBlockiv(GCGLuint program, GCGLuint uniformBlockIndex, GCGLenum pname, GCGLSpan<GCGLint> params) |
| 2848 |
{ |
2842 |
{ |
| 2849 |
if (!makeContextCurrent()) |
2843 |
if (!makeContextCurrent()) |
| 2850 |
return; |
2844 |
return; |
| 2851 |
gl::GetActiveUniformBlockivRobustANGLE(program, uniformBlockIndex, pname, params.bufSize, nullptr, params.data); |
2845 |
gl::GetActiveUniformBlockivRobustANGLE(program, uniformBlockIndex, pname, params.bufSize, nullptr, params.data); |
| 2852 |
} |
2846 |
} |
| 2853 |
|
2847 |
|
| 2854 |
void GraphicsContextGLOpenGL::multiDrawArraysANGLE(GCGLenum mode, GCGLSpan<const GCGLint> firsts, GCGLSpan<const GCGLsizei> counts, GCGLsizei drawcount) |
2848 |
void GraphicsContextGLANGLE::multiDrawArraysANGLE(GCGLenum mode, GCGLSpan<const GCGLint> firsts, GCGLSpan<const GCGLsizei> counts, GCGLsizei drawcount) |
| 2855 |
{ |
2849 |
{ |
| 2856 |
if (!makeContextCurrent()) |
2850 |
if (!makeContextCurrent()) |
| 2857 |
return; |
2851 |
return; |
|
Lines 2859-2865
void GraphicsContextGLOpenGL::multiDrawArraysANGLE(GCGLenum mode, GCGLSpan<const
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec246
|
| 2859 |
gl::MultiDrawArraysANGLE(mode, firsts.data, counts.data, drawcount); |
2853 |
gl::MultiDrawArraysANGLE(mode, firsts.data, counts.data, drawcount); |
| 2860 |
} |
2854 |
} |
| 2861 |
|
2855 |
|
| 2862 |
void GraphicsContextGLOpenGL::multiDrawArraysInstancedANGLE(GCGLenum mode, GCGLSpan<const GCGLint> firsts, GCGLSpan<const GCGLsizei> counts, GCGLSpan<const GCGLsizei> instanceCounts, GCGLsizei drawcount) |
2856 |
void GraphicsContextGLANGLE::multiDrawArraysInstancedANGLE(GCGLenum mode, GCGLSpan<const GCGLint> firsts, GCGLSpan<const GCGLsizei> counts, GCGLSpan<const GCGLsizei> instanceCounts, GCGLsizei drawcount) |
| 2863 |
{ |
2857 |
{ |
| 2864 |
if (!makeContextCurrent()) |
2858 |
if (!makeContextCurrent()) |
| 2865 |
return; |
2859 |
return; |
|
Lines 2867-2873
void GraphicsContextGLOpenGL::multiDrawArraysInstancedANGLE(GCGLenum mode, GCGLS
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec247
|
| 2867 |
gl::MultiDrawArraysInstancedANGLE(mode, firsts.data, counts.data, instanceCounts.data, drawcount); |
2861 |
gl::MultiDrawArraysInstancedANGLE(mode, firsts.data, counts.data, instanceCounts.data, drawcount); |
| 2868 |
} |
2862 |
} |
| 2869 |
|
2863 |
|
| 2870 |
void GraphicsContextGLOpenGL::multiDrawElementsANGLE(GCGLenum mode, GCGLSpan<const GCGLsizei> counts, GCGLenum type, GCGLSpan<const GCGLint> offsets, GCGLsizei drawcount) |
2864 |
void GraphicsContextGLANGLE::multiDrawElementsANGLE(GCGLenum mode, GCGLSpan<const GCGLsizei> counts, GCGLenum type, GCGLSpan<const GCGLint> offsets, GCGLsizei drawcount) |
| 2871 |
{ |
2865 |
{ |
| 2872 |
if (!makeContextCurrent()) |
2866 |
if (!makeContextCurrent()) |
| 2873 |
return; |
2867 |
return; |
|
Lines 2880-2886
void GraphicsContextGLOpenGL::multiDrawElementsANGLE(GCGLenum mode, GCGLSpan<con
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec248
|
| 2880 |
gl::MultiDrawElementsANGLE(mode, counts.data, type, pointers.data(), drawcount); |
2874 |
gl::MultiDrawElementsANGLE(mode, counts.data, type, pointers.data(), drawcount); |
| 2881 |
} |
2875 |
} |
| 2882 |
|
2876 |
|
| 2883 |
void GraphicsContextGLOpenGL::multiDrawElementsInstancedANGLE(GCGLenum mode, GCGLSpan<const GCGLsizei> counts, GCGLenum type, GCGLSpan<const GCGLint> offsets, GCGLSpan<const GCGLsizei> instanceCounts, GCGLsizei drawcount) |
2877 |
void GraphicsContextGLANGLE::multiDrawElementsInstancedANGLE(GCGLenum mode, GCGLSpan<const GCGLsizei> counts, GCGLenum type, GCGLSpan<const GCGLint> offsets, GCGLSpan<const GCGLsizei> instanceCounts, GCGLsizei drawcount) |
| 2884 |
{ |
2878 |
{ |
| 2885 |
if (!makeContextCurrent()) |
2879 |
if (!makeContextCurrent()) |
| 2886 |
return; |
2880 |
return; |
|
Lines 2893-2899
void GraphicsContextGLOpenGL::multiDrawElementsInstancedANGLE(GCGLenum mode, GCG
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec249
|
| 2893 |
gl::MultiDrawElementsInstancedANGLE(mode, counts.data, type, pointers.data(), instanceCounts.data, drawcount); |
2887 |
gl::MultiDrawElementsInstancedANGLE(mode, counts.data, type, pointers.data(), instanceCounts.data, drawcount); |
| 2894 |
} |
2888 |
} |
| 2895 |
|
2889 |
|
| 2896 |
bool GraphicsContextGLOpenGL::waitAndUpdateOldestFrame() |
2890 |
bool GraphicsContextGLANGLE::waitAndUpdateOldestFrame() |
| 2897 |
{ |
2891 |
{ |
| 2898 |
size_t oldestFrameCompletionFence = m_oldestFrameCompletionFence++ % maxPendingFrames; |
2892 |
size_t oldestFrameCompletionFence = m_oldestFrameCompletionFence++ % maxPendingFrames; |
| 2899 |
bool success = true; |
2893 |
bool success = true; |
|
Lines 2914-2919
bool GraphicsContextGLOpenGL::waitAndUpdateOldestFrame()
a/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp_sec250
|
| 2914 |
return success; |
2908 |
return success; |
| 2915 |
} |
2909 |
} |
| 2916 |
|
2910 |
|
|
|
2911 |
void GraphicsContextGLANGLE::simulateEventForTesting(SimulatedEventForTesting event) |
| 2912 |
{ |
| 2913 |
if (event == SimulatedEventForTesting::ContextChange) { |
| 2914 |
GraphicsContextGLOpenGLManager::sharedManager().displayWasReconfigured(); |
| 2915 |
return; |
| 2916 |
} |
| 2917 |
if (event == SimulatedEventForTesting::GPUStatusFailure) { |
| 2918 |
m_failNextStatusCheck = true; |
| 2919 |
return; |
| 2920 |
} |
| 2921 |
} |
| 2922 |
|
| 2923 |
bool GraphicsContextGLANGLE::isGLES2Compliant() const |
| 2924 |
{ |
| 2925 |
return m_isForWebGL2; |
| 2926 |
} |
| 2927 |
|
| 2928 |
void GraphicsContextGLANGLE::paintRenderingResultsToCanvas(ImageBuffer& imageBuffer) |
| 2929 |
{ |
| 2930 |
if (!makeContextCurrent()) |
| 2931 |
return; |
| 2932 |
if (getInternalFramebufferSize().isEmpty()) |
| 2933 |
return; |
| 2934 |
auto pixelBuffer = readRenderingResults(); |
| 2935 |
if (!pixelBuffer) |
| 2936 |
return; |
| 2937 |
paintToCanvas(contextAttributes(), WTFMove(*pixelBuffer), imageBuffer.backendSize(), imageBuffer.context()); |
| 2938 |
} |
| 2939 |
|
| 2940 |
void GraphicsContextGLANGLE::paintCompositedResultsToCanvas(ImageBuffer& imageBuffer) |
| 2941 |
{ |
| 2942 |
if (!makeContextCurrent()) |
| 2943 |
return; |
| 2944 |
if (getInternalFramebufferSize().isEmpty()) |
| 2945 |
return; |
| 2946 |
auto pixelBuffer = readCompositedResults(); |
| 2947 |
if (!pixelBuffer) |
| 2948 |
return; |
| 2949 |
paintToCanvas(contextAttributes(), WTFMove(*pixelBuffer), imageBuffer.backendSize(), imageBuffer.context()); |
| 2950 |
} |
| 2951 |
|
| 2952 |
std::optional<PixelBuffer> GraphicsContextGLANGLE::paintRenderingResultsToPixelBuffer() |
| 2953 |
{ |
| 2954 |
// Reading premultiplied alpha would involve unpremultiplying, which is lossy. |
| 2955 |
if (contextAttributes().premultipliedAlpha) |
| 2956 |
return std::nullopt; |
| 2957 |
auto results = readRenderingResultsForPainting(); |
| 2958 |
if (results && !results->size().isEmpty()) { |
| 2959 |
ASSERT(results->format().pixelFormat == PixelFormat::RGBA8 || results->format().pixelFormat == PixelFormat::BGRA8); |
| 2960 |
// FIXME: Make PixelBufferConversions support negative rowBytes and in-place conversions. |
| 2961 |
const auto size = results->size(); |
| 2962 |
const size_t rowStride = size.width() * 4; |
| 2963 |
uint8_t* top = results->data().data(); |
| 2964 |
uint8_t* bottom = top + (size.height() - 1) * rowStride; |
| 2965 |
std::unique_ptr<uint8_t[]> temp(new uint8_t[rowStride]); |
| 2966 |
for (; top < bottom; top += rowStride, bottom -= rowStride) { |
| 2967 |
memcpy(temp.get(), bottom, rowStride); |
| 2968 |
memcpy(bottom, top, rowStride); |
| 2969 |
memcpy(top, temp.get(), rowStride); |
| 2970 |
} |
| 2971 |
} |
| 2972 |
return results; |
| 2973 |
} |
| 2974 |
|
| 2975 |
std::optional<PixelBuffer> GraphicsContextGLANGLE::readRenderingResultsForPainting() |
| 2976 |
{ |
| 2977 |
if (!makeContextCurrent()) |
| 2978 |
return std::nullopt; |
| 2979 |
if (getInternalFramebufferSize().isEmpty()) |
| 2980 |
return std::nullopt; |
| 2981 |
return readRenderingResults(); |
| 2982 |
} |
| 2983 |
|
| 2984 |
std::optional<PixelBuffer> GraphicsContextGLANGLE::readCompositedResultsForPainting() |
| 2985 |
{ |
| 2986 |
if (!makeContextCurrent()) |
| 2987 |
return std::nullopt; |
| 2988 |
if (getInternalFramebufferSize().isEmpty()) |
| 2989 |
return std::nullopt; |
| 2990 |
return readCompositedResults(); |
| 2991 |
} |
| 2992 |
|
| 2917 |
} |
2993 |
} |
| 2918 |
|
2994 |
|
| 2919 |
#endif // ENABLE(WEBGL) && USE(ANGLE) |
2995 |
#endif // ENABLE(WEBGL) && USE(ANGLE) |