diff options
Diffstat (limited to 'Source/WebCore/platform')
4 files changed, 9 insertions, 9 deletions
diff --git a/Source/WebCore/platform/graphics/android/GLUtils.cpp b/Source/WebCore/platform/graphics/android/GLUtils.cpp index a7ddbbd..29608cf 100644 --- a/Source/WebCore/platform/graphics/android/GLUtils.cpp +++ b/Source/WebCore/platform/graphics/android/GLUtils.cpp @@ -418,14 +418,11 @@ void GLUtils::updateSurfaceTextureWithBitmap(TextureInfo* texture, int x, int y, bitmap.lockPixels(); uint8_t* bitmapOrigin = static_cast<uint8_t*>(bitmap.getPixels()); - - // Copied pixel by pixel since we need to handle the offsets and stride. + // Copied line by line since we need to handle the offsets and stride. for (row = 0 ; row < bitmap.height(); row ++) { - for (col = 0 ; col < bitmap.width(); col ++) { - uint8_t* dst = &(img[(buf->getStride() * (row + x) + (col + y)) * bpp]); - uint8_t* src = &(bitmapOrigin[(bitmap.width() * row + col) * bpp]); - memcpy(dst, src, bpp); - } + uint8_t* dst = &(img[(buf->getStride() * (row + x) + y) * bpp]); + uint8_t* src = &(bitmapOrigin[bitmap.width() * row * bpp]); + memcpy(dst, src, bpp * bitmap.width()); } bitmap.unlockPixels(); } diff --git a/Source/WebCore/platform/graphics/android/ShaderProgram.cpp b/Source/WebCore/platform/graphics/android/ShaderProgram.cpp index f2b2dc8..635130b 100644 --- a/Source/WebCore/platform/graphics/android/ShaderProgram.cpp +++ b/Source/WebCore/platform/graphics/android/ShaderProgram.cpp @@ -51,6 +51,7 @@ static const char gVertexShader[] = "}\n"; static const char gFragmentShader[] = + "#extension GL_OES_EGL_image_external : require\n" "precision mediump float;\n" "varying vec2 v_texCoord; \n" "uniform float alpha; \n" diff --git a/Source/WebCore/platform/graphics/android/SharedTexture.cpp b/Source/WebCore/platform/graphics/android/SharedTexture.cpp index 5f1cd77..ecd9f54 100644 --- a/Source/WebCore/platform/graphics/android/SharedTexture.cpp +++ b/Source/WebCore/platform/graphics/android/SharedTexture.cpp @@ -203,6 +203,8 @@ TextureInfo* SharedTexture::lockTarget() glBindTexture(GL_TEXTURE_2D, m_sourceTexture->m_textureId); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); return m_sourceTexture; } diff --git a/Source/WebCore/platform/graphics/android/VideoLayerAndroid.cpp b/Source/WebCore/platform/graphics/android/VideoLayerAndroid.cpp index aee5ae0..0f34c97 100644 --- a/Source/WebCore/platform/graphics/android/VideoLayerAndroid.cpp +++ b/Source/WebCore/platform/graphics/android/VideoLayerAndroid.cpp @@ -168,7 +168,7 @@ bool VideoLayerAndroid::drawGL(GLWebViewState* glWebViewState, SkMatrix& matrix) // Show the progressing animation, with two rotating circles TilesManager::instance()->shader()->drawLayerQuad(drawTransform(), rect, m_backgroundTextureId, - 0.5, true); + 1, true); TransformationMatrix addReverseRotation; TransformationMatrix addRotation = drawTransform(); @@ -217,7 +217,7 @@ bool VideoLayerAndroid::drawGL(GLWebViewState* glWebViewState, SkMatrix& matrix) // Show the static poster b/c there is no screen shot available. TilesManager::instance()->shader()->drawLayerQuad(drawTransform(), rect, m_backgroundTextureId, - 0.5, true); + 1, true); TilesManager::instance()->shader()->drawLayerQuad(drawTransform(), innerRect, m_posterTextureId, 1, true); |
