diff options
author | Owen Lin <owenlin@google.com> | 2012-10-15 19:22:56 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-10-15 19:22:56 -0700 |
commit | 66bfc06e875129df7b76c7aa56151efa2da111d6 (patch) | |
tree | c859a690588784e94aeccb20fd29c698188cc44a /src/com/android/gallery3d/ui/GLCanvas.java | |
parent | e2d056e507c776b4b5dbdb42547ad166669d44f2 (diff) | |
parent | a942400efc37c5dd05b3c615092ae8d0f2ca7e2c (diff) | |
download | android_packages_apps_Snap-66bfc06e875129df7b76c7aa56151efa2da111d6.tar.gz android_packages_apps_Snap-66bfc06e875129df7b76c7aa56151efa2da111d6.tar.bz2 android_packages_apps_Snap-66bfc06e875129df7b76c7aa56151efa2da111d6.zip |
am ff025412: Merge "Revert "Revert "Upload screennails in tiles to prevent jank""" into gb-ub-photos-arches
* commit 'ff025412e2cacedd8cbb7901140e580f76634ee6':
Revert "Revert "Upload screennails in tiles to prevent jank""
Diffstat (limited to 'src/com/android/gallery3d/ui/GLCanvas.java')
-rw-r--r-- | src/com/android/gallery3d/ui/GLCanvas.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/ui/GLCanvas.java b/src/com/android/gallery3d/ui/GLCanvas.java index e3a32ef08..6f8baef7e 100644 --- a/src/com/android/gallery3d/ui/GLCanvas.java +++ b/src/com/android/gallery3d/ui/GLCanvas.java @@ -99,6 +99,13 @@ public interface GLCanvas { public void drawMixed(BasicTexture from, int toColor, float ratio, int x, int y, int w, int h); + // Draw a region of a texture and a specified color to the specified + // rectangle. The actual color used is from * (1 - ratio) + to * ratio. + // The region of the texture is defined by parameter "src". The target + // rectangle is specified by parameter "target". + public void drawMixed(BasicTexture from, int toColor, + float ratio, RectF src, RectF target); + // Gets the underlying GL instance. This is used only when direct access to // GL is needed. public GL11 getGLInstance(); |