Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0f8a27d5 authored by Dohyun Lee's avatar Dohyun Lee Committed by Steve Kondik
Browse files

Avert duplicating translation in drawing a background drawable



When bounds of a background drawable of a view is set then
the drawable is translated into its left and top position
twice by:

 1. mBackgroundRenderNode.setLeftTopRightBottom() when
    creating or updaing the display list for the drawable.

 2. OpenGLRenderer during actual rendering. For example,
    the translation is done by loadTranslate() call to a
    model view matrix in setupDrawModelView() for drawing
    a simple colored rectangle.

This patch removes the translation described in step 1
above since all works for the translation of a background
drawable is done by OpenGLRenderer appropriately.

Change-Id: I9b8549b36215d567a5f43e1bb7bd02243a2377d1
Signed-off-by: default avatarDohyun Lee <dohyun.lee@lge.com>
parent 6378effe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment