OSDN Git Service

Do not merge: cherry-pick incorect clip CL from master
authorDerek Sollenberger <djsollen@google.com>
Thu, 24 Feb 2011 21:17:51 +0000 (16:17 -0500)
committerandroid-merger <android-build@android.com>
Fri, 25 Feb 2011 02:45:01 +0000 (18:45 -0800)
Fix problem where plugins were not drawn due to an incorrect clip.

bug: 3451982
Change-Id: I9eaaa218afa1a386dcb89d1d7845f80b0b180959

WebCore/platform/graphics/android/MediaLayer.cpp
WebKit/android/plugins/ANPOpenGLInterface.cpp

index d8bbefc..9bc2a3e 100644 (file)
@@ -73,6 +73,8 @@ MediaLayer::~MediaLayer()
 
 bool MediaLayer::drawGL(SkMatrix& matrix)
 {
+    TilesManager::instance()->shader()->clip(drawClip());
+
     // check to see if we need to create a video texture
     m_videoTexture->initNativeWindowIfNeeded();
     // draw any video content if present
index 015a04c..839ec17 100644 (file)
@@ -67,8 +67,8 @@ static ANPTextureInfo anp_lockTexture(NPP instance) {
 
     ANPTextureInfo anpInfo;
     anpInfo.textureId = info->m_textureId;
-    anpInfo.width = info->m_width;
-    anpInfo.height = info->m_height;
+    anpInfo.width = (int32_t) info->m_width;
+    anpInfo.height = (int32_t) info->m_height;
     anpInfo.internalFormat = info->m_internalFormat;
     return anpInfo;
 }