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

Unified Diff: ui/ozone/platform/dri/screen_manager.cc

Issue 948903003: [Ozone-Dri] Replace blend with copy to the modeset buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/screen_manager.cc
diff --git a/ui/ozone/platform/dri/screen_manager.cc b/ui/ozone/platform/dri/screen_manager.cc
index 2a1eaeca91bbc85367322695050f1d1a5fc69281..fbf2edef55a95c9e75e694eb09fd5958aaf98bfe 100644
--- a/ui/ozone/platform/dri/screen_manager.cc
+++ b/ui/ozone/platform/dri/screen_manager.cc
@@ -54,7 +54,10 @@ void FillModesetBuffer(const scoped_refptr<DriWrapper>& dri,
return;
skia::RefPtr<SkImage> image = saved_buffer.image();
- modeset_buffer.canvas()->drawImage(image.get(), 0, 0);
+ SkPaint paint;
+ // Copy the source buffer. Do not perform any blending.
+ paint.setXfermodeMode(SkXfermode::kSrc_Mode);
+ modeset_buffer.canvas()->drawImage(image.get(), 0, 0, &paint);
}
} // namespace
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698