canvas 2D lowLatency ✏ ️: correct CreateSkSurface() orientation
This CL does two things to support the correct SkSurface orientation for low latency canvas 2D contexts to get promoted to overlay: 1. CanvasRenderingContext::IsOriginTopLeft() is extended in 2D canvases to return false if IsAccelerated() (because those refer to the bottom left) -- but true if it IsSingleBuffered(). This is needed to support overlays on Intel, which can only be top left (and other platforms/archs like ARM RockChip are OK with it anyway). 2. CanvasResourceProvider::Create() gets a new parameter, namely |is_origin_top_left|, which is by default true (since that's how Canvases work by default). The callsites where true is not the right thing are corrected. Bug: 869161 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_layout_tests_slimming_paint_v2;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel Change-Id: Ia798bd674b3f9e42063e5ae8b4017bfdd9e60d48 Reviewed-on: https://chromium-review.googlesource.com/1160774Reviewed-by:Fernando Serboncini <fserb@chromium.org> Reviewed-by:
Kenneth Russell <kbr@chromium.org> Commit-Queue: Miguel Casas <mcasas@chromium.org> Cr-Commit-Position: refs/heads/master@{#581294}
Showing
Please register or sign in to comment