Plumb async attribute values to PaintImage in cc

Desktop / Chromium - Vladimir Levin [chromium.org] - 12 October 2017 18:41 EDT

This patch introduces an async attribute and plumbs it from {HTML,SVG}ImageElement to cc. Note that this implementation is using tri-state variable (on, off, or unspecified).

R=khushalsagar@chromium.org, chrishtr@chromium.org, fs@opera.com

Bug: 772470 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: I75956f28076963c32f148c5c9c66998bd100accd Reviewed-on: https://chromium-review.googlesource.com/699574 Commit-Queue: vmpstr

a9258c0f Plumb async attribute values to PaintImage in cc.
cc/paint/paint_image.h | 12 ++++++++----
cc/paint/paint_image_builder.h | 5 +++++
.../element-instance-property-listing-expected.txt | 1 +
.../global-interface-listing-expected.txt | 6 ++++++
.../WebKit/Source/core/html/HTMLCanvasElement.cpp | 3 ++-
.../WebKit/Source/core/html/HTMLImageElement.cpp | 4 ++++
.../WebKit/Source/core/html/HTMLImageElement.h | 3 +++
.../WebKit/Source/core/html/HTMLImageElement.idl | 1 +
.../Source/core/html/canvas/ImageElementBase.cpp | 14 ++++++++++++++
.../Source/core/html/canvas/ImageElementBase.h | 6 ++++++
.../WebKit/Source/core/layout/shapes/Shape.cpp | 2 +-
.../WebKit/Source/core/paint/BoxPainterBase.cpp | 5 ++++-
.../WebKit/Source/core/paint/ImagePainter.cpp | 8 +++++++-
.../WebKit/Source/core/paint/ListMarkerPainter.cpp | 4 +++-
.../Source/core/paint/NinePieceImagePainter.cpp | 5 ++++-
third_party/WebKit/Source/core/paint/PaintInfo.h | 3 +++
.../WebKit/Source/core/paint/SVGImagePainter.cpp | 3 ++-
.../Source/core/paint/ThemePainterDefault.cpp | 2 +-
.../paint/compositing/CompositedLayerMapping.cpp | 11 +++++++++--
.../WebKit/Source/core/svg/SVGAttributeNames.json5 | 1 +
.../WebKit/Source/core/svg/SVGImageElement.cpp | 13 ++++++++++++-
.../WebKit/Source/core/svg/SVGImageElement.h | 4 ++++
.../WebKit/Source/core/svg/SVGImageElement.idl | 1 +
.../WebKit/Source/core/svg/graphics/SVGImage.cpp | 3 ++-
.../WebKit/Source/core/svg/graphics/SVGImage.h | 3 ++-
.../core/svg/graphics/SVGImageForContainer.cpp | 3 ++-
.../core/svg/graphics/SVGImageForContainer.h | 3 ++-
.../Source/core/svg/graphics/SVGImageTest.cpp | 2 +-
.../modules/canvas2d/BaseRenderingContext2D.cpp | 2 +-
.../modules/webgl/WebGLRenderingContextBase.cpp | 2 +-
.../WebKit/Source/platform/DragImageTest.cpp | 3 ++-
.../graphics/AcceleratedStaticBitmapImage.cpp | 11 +++++++++--
.../graphics/AcceleratedStaticBitmapImage.h | 3 ++-
.../Source/platform/graphics/BitmapImage.cpp | 10 +++++++++-
.../WebKit/Source/platform/graphics/BitmapImage.h | 3 ++-
.../platform/graphics/CrossfadeGeneratedImage.cpp | 14 ++++++++------
.../platform/graphics/CrossfadeGeneratedImage.h | 8 ++++++--
.../platform/graphics/GradientGeneratedImage.cpp | 3 ++-
.../platform/graphics/GradientGeneratedImage.h | 3 ++-
.../Source/platform/graphics/GraphicsContext.cpp | 14 ++++++++++----
.../Source/platform/graphics/GraphicsContext.h | 2 ++
.../Source/platform/graphics/GraphicsLayer.cpp | 5 +++++
.../Source/platform/graphics/GraphicsLayer.h | 1 +
.../WebKit/Source/platform/graphics/Image.cpp | 2 +-
.../WebKit/Source/platform/graphics/Image.h | 18 +++++++++++++++++-
.../platform/graphics/ImageBufferSurface.cpp | 3 ++-
.../platform/graphics/ImageLayerChromiumTest.cpp | 13 ++++++++-----
.../platform/graphics/PaintGeneratedImage.cpp | 3 ++-
.../Source/platform/graphics/PaintGeneratedImage.h | 3 ++-
.../Source/platform/graphics/PlaceholderImage.cpp | 22 +++++++++++++---------
.../Source/platform/graphics/PlaceholderImage.h | 3 ++-
.../graphics/UnacceleratedStaticBitmapImage.cpp | 3 ++-
.../graphics/UnacceleratedStaticBitmapImage.h | 3 ++-
.../Source/platform/runtime_enabled_features.json5 | 4 ++++
54 files changed, 228 insertions(+), 64 deletions(-)

Upstream: git.chromium.org


  • Share