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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp

Issue 2878573003: Initial skeleton of high-contrast mode. (Closed)
Patch Set: Move to CompositedLayerMapping::DoPaintTask and add unit test Created 3 years, 6 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/platform/graphics/GraphicsLayer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
index 1f1931d8df4f240a5b98c7b96955be0ab89e6a7f..8f9c2786f7557343e037eb633646501a09ea983f 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -314,7 +314,8 @@ bool GraphicsLayer::PaintWithoutCommit(
return false;
}
- GraphicsContext context(GetPaintController(), disabled_mode, nullptr);
+ GraphicsContext context(GetPaintController(), nullptr, disabled_mode,
+ nullptr);
previous_interest_rect_ = *interest_rect;
client_->PaintContents(this, context, painting_phase_, *interest_rect);
@@ -1184,7 +1185,7 @@ sk_sp<PaintRecord> GraphicsLayer::CaptureRecord() {
return nullptr;
FloatRect bounds(IntRect(IntPoint(0, 0), ExpandedIntSize(Size())));
- GraphicsContext graphics_context(GetPaintController(),
+ GraphicsContext graphics_context(GetPaintController(), nullptr,
GraphicsContext::kNothingDisabled, nullptr);
graphics_context.BeginRecording(bounds);
GetPaintController().GetPaintArtifact().Replay(bounds, graphics_context);

Powered by Google App Engine
This is Rietveld 408576698