summaryrefslogtreecommitdiff
path: root/libs/hwui/NinePatchUtils.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2018-05-07 08:12:07 -0700
committerJohn Reck <jreck@google.com>2018-05-09 11:39:37 -0700
commite170fb6686c3e88cee6e32f4e3eb12fcf9bfe931 (patch)
treebf0ccbbcd2f89ccb468b216e14670451fedc3221 /libs/hwui/NinePatchUtils.h
parent33f4f1cb1645635f8b5c369e1dddda84e0396c34 (diff)
A better HW Bitmap uploader
Move all HW bitmap upload operations off of RenderThread. Ensure EGL context outlives all upload requests Bug: 79250950 Test: builds, boots, systrace is good, CTS bitmap tests pass Change-Id: I5ace6c516d33b1afdf1a407cd8b183f6b60c22c1
Diffstat (limited to 'libs/hwui/NinePatchUtils.h')
-rw-r--r--libs/hwui/NinePatchUtils.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/hwui/NinePatchUtils.h b/libs/hwui/NinePatchUtils.h
index db9509fff378..082e95fb1440 100644
--- a/libs/hwui/NinePatchUtils.h
+++ b/libs/hwui/NinePatchUtils.h
@@ -53,9 +53,8 @@ static inline int NumDistinctRects(const SkCanvas::Lattice& lattice) {
return xRects * yRects;
}
-static inline void SetLatticeFlags(SkCanvas::Lattice* lattice,
- SkCanvas::Lattice::RectType* flags, int numFlags, const Res_png_9patch& chunk,
- SkColor* colors) {
+static inline void SetLatticeFlags(SkCanvas::Lattice* lattice, SkCanvas::Lattice::RectType* flags,
+ int numFlags, const Res_png_9patch& chunk, SkColor* colors) {
lattice->fRectTypes = flags;
lattice->fColors = colors;
sk_bzero(flags, numFlags * sizeof(SkCanvas::Lattice::RectType));