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

Unified Diff: gm/optimizations.cpp

Issue 129373002: Disable optimizations GM for 565 targets. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: refer to bug Created 6 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
« 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: gm/optimizations.cpp
diff --git a/gm/optimizations.cpp b/gm/optimizations.cpp
index 6b7d2843fc688d78fd03855eade2c4276e0ba28f..8d0b7caa84b500423cc8354cfc13494136787b31 100644
--- a/gm/optimizations.cpp
+++ b/gm/optimizations.cpp
@@ -311,6 +311,14 @@ public:
static const int kHeight = 800;
protected:
robertphillips 2014/01/09 12:53:30 add virtual prefix?
mtklein 2014/01/09 13:08:48 Happy to add it, but now that I'm thinking about i
+ uint32_t onGetFlags() const SK_OVERRIDE {
+ // One optimization changes the color drawn slightly in a 565 target.
+ // We've decided it's innocuous, so we disable this GM when targeting 565.
+ // Revisit this if we get finer-grained control: it'd be nice to keep drawing directly.
+ // For more, see skia:1994.
+ return skiagm::GM::kSkip565_Flag;
+ }
+
SkString onShortName() {
return SkString("optimizations");
}
« 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