summaryrefslogtreecommitdiffstats
path: root/libs/hwui/DisplayListOp.h
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2015-02-24 13:46:29 -0800
committerChris Craik <ccraik@google.com>2015-02-25 10:18:46 -0800
commit14100ac9f8efc1a2407e3f5a5c8b2532a49585db (patch)
treeddcbc13d5205d5a2ce47dc55506716a9490011b4 /libs/hwui/DisplayListOp.h
parentcdd35e6776f1e699a507e4ebb3a19b5eb75dc0fb (diff)
downloadframeworks_base-14100ac9f8efc1a2407e3f5a5c8b2532a49585db.zip
frameworks_base-14100ac9f8efc1a2407e3f5a5c8b2532a49585db.tar.gz
frameworks_base-14100ac9f8efc1a2407e3f5a5c8b2532a49585db.tar.bz2
Glop support for custom textured UVs, simplify drawBitmap(src,dst)
Front load the scaling-to-support-shaders to record time. Change-Id: I861c82d9d16d3c5e063cf87230127eed0b3f9b54
Diffstat (limited to 'libs/hwui/DisplayListOp.h')
-rw-r--r--libs/hwui/DisplayListOp.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/hwui/DisplayListOp.h b/libs/hwui/DisplayListOp.h
index cca8a06..00942d7 100644
--- a/libs/hwui/DisplayListOp.h
+++ b/libs/hwui/DisplayListOp.h
@@ -713,9 +713,7 @@ public:
mBitmap(bitmap), mSrc(srcLeft, srcTop, srcRight, srcBottom) {}
virtual void applyDraw(OpenGLRenderer& renderer, Rect& dirty) override {
- renderer.drawBitmap(mBitmap, mSrc.left, mSrc.top, mSrc.right, mSrc.bottom,
- mLocalBounds.left, mLocalBounds.top, mLocalBounds.right, mLocalBounds.bottom,
- mPaint);
+ renderer.drawBitmap(mBitmap, mSrc, mLocalBounds, mPaint);
}
virtual void output(int level, uint32_t logFlags) const override {