aboutsummaryrefslogtreecommitdiff
path: root/samplecode/SampleApp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SampleApp.cpp')
-rw-r--r--samplecode/SampleApp.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index 0bd4435118..faceea47b1 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -59,6 +59,8 @@
class GrContext;
#endif
+extern bool gSkForceRasterPipelineBlitter;
+
enum OutputColorSpace {
kLegacy_OutputColorSpace,
kSRGB_OutputColorSpace,
@@ -1946,6 +1948,11 @@ bool SampleWindow::onHandleChar(SkUnichar uni) {
this->inval(nullptr);
this->updateTitle();
return true;
+ case 'R':
+ gSkForceRasterPipelineBlitter = !gSkForceRasterPipelineBlitter;
+ this->inval(nullptr);
+ this->updateTitle();
+ break;
case 'k':
fPerspAnim = !fPerspAnim;
this->inval(nullptr);
@@ -2295,6 +2302,9 @@ void SampleWindow::updateTitle() {
if (fUseDeferredCanvas) {
title.prepend("<E> ");
}
+ if (gSkForceRasterPipelineBlitter) {
+ title.prepend("<R> ");
+ }
title.prepend(trystate_str(fLCDState, "LCD ", "lcd "));
title.prepend(trystate_str(fAAState, "AA ", "aa "));