Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/ImageDocument.cpp |
| diff --git a/third_party/WebKit/Source/core/html/ImageDocument.cpp b/third_party/WebKit/Source/core/html/ImageDocument.cpp |
| index 88826f4d3894c9781ee2ab8eba50a45a760c2b64..d886ab5b78bada2bb66b057d474b114b935a762d 100644 |
| --- a/third_party/WebKit/Source/core/html/ImageDocument.cpp |
| +++ b/third_party/WebKit/Source/core/html/ImageDocument.cpp |
| @@ -418,12 +418,15 @@ void ImageDocument::updateImageStyle() { |
| imageStyle.append(AtomicString::number(tileSize)); |
| imageStyle.append("px;"); |
| + // Generating the checkerboard pattern this was is not exactly cheap. |
|
gone
2016/11/22 01:28:30
was -> way
and -> an
f(malita)
2016/11/22 01:42:58
Done.
|
| + // If rasterization performance becomes and issue, we could look at using |
| + // a cheaper shader (e.g. pre-generate a scaled tile + base64-encode + |
| + // inline dataURI => single bitmap shader). |
| imageStyle.append( |
| - "background-color: white;" |
| "background-image:" |
| "linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, " |
| "#eee 75%, #eee 100%)," |
| - "linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, " |
| + "linear-gradient(45deg, #eee 25%, white 25%, white 75%, " |
| "#eee 75%, #eee 100%);"); |
| } |
| } |