'../unix_test_app/main.cpp',
],
}],
+ [ 'skia_os == "android"', {
+ # Android does not support animator so we need to remove all files
+ # that have references to it.
+ 'include_dirs!': [
+ '../include/animator',
+ ],
+ 'sources!': [
+ '../src/views/SkBorderView.cpp',
+ '../src/views/SkImageView.cpp',
+ '../src/views/SkProgressBarView.cpp',
+ '../src/views/SkScrollBarView.cpp',
+ '../src/views/SkStaticTextView.cpp',
+ '../src/views/SkWidgetViews.cpp',
+ ],
+ }],
],
'direct_dependent_settings': {
'include_dirs': [
},
'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ],
}],
- [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
+ [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android"]', {
'link_settings': { 'libraries': [ '-lz', ], },
'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ],
}],
return true;
case 'f':
// only
- fMeasureFPS = !fMeasureFPS;
- this->updateTitle();
- this->inval(NULL);
+ toggleFPS();
break;
case 'g':
fRequestGrabImage = true;
this->inval(NULL);
}
+void SampleWindow::toggleFPS() {
+ fMeasureFPS = !fMeasureFPS;
+ this->updateTitle();
+ this->inval(NULL);
+}
+
#include "SkDumpCanvas.h"
bool SampleWindow::onHandleKey(SkKey key) {