summaryrefslogtreecommitdiffstats
path: root/cc/blink
diff options
context:
space:
mode:
authorschenney <schenney@chromium.org>2015-04-23 11:31:08 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-23 18:31:18 +0000
commit68d12cfa87a2aeffba0caa2e31e99e5c80744780 (patch)
tree13ee78a0afc6bf516766670a2b6f5cd0bb98d0c4 /cc/blink
parente771ecf956c01834866e5c1caaad97977ca6fda4 (diff)
downloadchromium_src-68d12cfa87a2aeffba0caa2e31e99e5c80744780.zip
chromium_src-68d12cfa87a2aeffba0caa2e31e99e5c80744780.tar.gz
chromium_src-68d12cfa87a2aeffba0caa2e31e99e5c80744780.tar.bz2
Add support for painting disabled mode for Slimming Paint
Plumb the "painting disabled" mode through to disable the GraphicsContext in Slimming Paint perf testing. This mode causes Graphics Context to do no work, producing empty SkPictures for all drawing display items. This seems the best interpretation of "painting disabled". The perf results lines for slimming_paint record_time_null_canvas will go to zero after this patch, and the record_time_construction_disabled result will start appearing and be zero for non slimming paint. R=sullivan,skyostil,enne,ajuma BUG=471348 Review URL: https://codereview.chromium.org/1104433005 Cr-Commit-Position: refs/heads/master@{#326586}
Diffstat (limited to 'cc/blink')
-rw-r--r--cc/blink/web_content_layer_impl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/blink/web_content_layer_impl.cc b/cc/blink/web_content_layer_impl.cc
index 90d7f9b..a480a06 100644
--- a/cc/blink/web_content_layer_impl.cc
+++ b/cc/blink/web_content_layer_impl.cc
@@ -29,6 +29,8 @@ PaintingControlToWeb(
return blink::WebContentLayerClient::DisplayListConstructionDisabled;
case cc::ContentLayerClient::DISPLAY_LIST_CACHING_DISABLED:
return blink::WebContentLayerClient::DisplayListCachingDisabled;
+ case cc::ContentLayerClient::DISPLAY_LIST_PAINTING_DISABLED:
+ return blink::WebContentLayerClient::DisplayListPaintingDisabled;
}
NOTREACHED();
return blink::WebContentLayerClient::PaintDefaultBehavior;