forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cc: Disable decoding of PaintRecord shaders in cc.
For PaintRecord backed shaders, skia performs the rasterization of the shader's record at the required scale before tiling. In order to decode images in these records using cc's decode cache, we create a temporary SkPicture with images replaced with decodes from cc's cache and use that in a new SkPictureShader each time the PaintShader is rasterized. Skia internally maintains a cache of rasterized pictures used in these shaders, keyed on the SkPictureShader's uniqueID. Since a new SkPictureShader is created for each raster call, we don't get a cache hit in skia and end up re-rasterizing the shader's record. The ideal solution for this would be to maintain a PaintShaderCache which caches rasterized records. But given the rarity of these cases, its not worth duplicating skia's picture cache. However, if any of the images in these records are animated, they must go through cc's decode stack to update them and use cached animation frames. The change ensures that we only decode shaders in cc if they have animated images. Note that the performance hit of re-rasterization of records in these cases will still exist. R=chrishtr@chromium.org, enne@chromium.org, ericrk@chromium.org Bug: 817640 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: Ibd1f3db9902f21fca20c99be1cf9e36b54cd7085 Reviewed-on: https://chromium-review.googlesource.com/952529 Commit-Queue: Khushal <khushalsagar@chromium.org> Reviewed-by: Eric Karl <ericrk@chromium.org> Reviewed-by: enne <enne@chromium.org> Reviewed-by: Chris Harrelson <chrishtr@chromium.org> Reviewed-by: Antoine Labour <piman@chromium.org> Cr-Commit-Position: refs/heads/master@{#542570}
- Loading branch information
1 parent
d97bf31
commit 058b677
Showing
24 changed files
with
132 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-41 Bytes
(100%)
...linux/virtual/gpu-rasterization/images/color-profile-svg-fill-text-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-4.93 KB
(82%)
...10.10/virtual/gpu-rasterization/images/color-profile-svg-fill-text-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-121 Bytes
(98%)
.../WebKit/LayoutTests/platform/mac/images/cross-fade-background-size-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-99 Bytes
(99%)
...m/mac/virtual/exotic-color-space/images/cross-fade-background-size-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+388 Bytes
(100%)
...tual/gpu-rasterization/images/color-profile-background-image-space-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.26 KB
(100%)
...ts/platform/mac/virtual/gpu-rasterization/images/color-profile-svg-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-4.66 KB
(82%)
...m/mac/virtual/gpu-rasterization/images/color-profile-svg-fill-text-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-203 Bytes
(97%)
...rm/mac/virtual/gpu-rasterization/images/cross-fade-background-size-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-121 Bytes
(98%)
.../WebKit/LayoutTests/platform/win/images/cross-fade-background-size-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-99 Bytes
(99%)
...m/win/virtual/exotic-color-space/images/cross-fade-background-size-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-607 Bytes
(99%)
...tual/gpu-rasterization/images/color-profile-background-image-space-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.13 KB
(100%)
...ts/platform/win/virtual/gpu-rasterization/images/color-profile-svg-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-118 Bytes
(100%)
...m/win/virtual/gpu-rasterization/images/color-profile-svg-fill-text-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-132 Bytes
(98%)
...rm/win/virtual/gpu-rasterization/images/cross-fade-background-size-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.