Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Unified Diff: third_party/WebKit/Source/core/loader/resource/ImageResource.cpp

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: fix ContentResourceProviderTest Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/resource/ImageResource.cpp
diff --git a/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp b/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp
index 2e353337e7b8dd350f281854b554a6bd7f7a7ed8..b319b9a30467bbd8e059d14f3a79c237e49171ad 100644
--- a/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp
+++ b/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp
@@ -398,8 +398,10 @@ void ImageResource::responseReceived(
}
static bool isLoFiImage(const ImageResource& resource) {
- if (resource.resourceRequest().loFiState() != WebURLRequest::LoFiOn)
+ if (!(resource.resourceRequest().previewsState() &
+ WebURLRequest::ServerLoFiOn)) {
return false;
+ }
return !resource.isLoaded() ||
resource.response()
.httpHeaderField("chrome-proxy-content-transform")

Powered by Google App Engine
This is Rietveld 408576698