-
Khushal authored
The GPU service code assumes that all textures uploads made directly to shared image interface are 4 byte aligned. While this is true for RGBA resources, which have 4 bytes per pixel, its not the case for ALPHA_8 resources. A mismatch in the expected size causes the upload to fail and the service side tears down the GL context. This change fixes the above by ensuring that UI resource creation code allocates and initializes the SkBitmaps with a 4 byte alignment. Bug:1013992 R=kbr@chromium.org,skyostil@chromium.org Change-Id: I2bd8e4ce7764573f2cc7b78ac8582346cf9baf7c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2093272Reviewed-by:
David Trainor <dtrainor@chromium.org> Reviewed-by:
Kenneth Russell <kbr@chromium.org> Reviewed-by:
Sami Kyöstilä <skyostil@chromium.org> Commit-Queue: Khushal <khushalsagar@chromium.org> Auto-Submit: Khushal <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/master@{#749737}
938fda43