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

Unified Diff: tools/viewer/sk_app/android/Window_android.cpp

Issue 1982643004: Implement touch control (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Dedup Created 4 years, 7 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: tools/viewer/sk_app/android/Window_android.cpp
diff --git a/tools/viewer/sk_app/android/Window_android.cpp b/tools/viewer/sk_app/android/Window_android.cpp
index f16e56753f37ef2939842fa981b1cb9a9952f2ba..6e4701cd2bd1c6d71bf38ebe58bbbff564cf0154 100644
--- a/tools/viewer/sk_app/android/Window_android.cpp
+++ b/tools/viewer/sk_app/android/Window_android.cpp
@@ -64,6 +64,11 @@ void Window_android::onDisplayDestroyed() {
detach();
}
-void Window_android::inval() { fSkiaAndroidApp->postMessage(Message(kContentInvalidated)); }
+void Window_android::inval() {
+ if (!fSkiaAndroidApp->fIsContentInvalidated) {
+ fSkiaAndroidApp->postMessage(Message(kContentInvalidated));
+ fSkiaAndroidApp->fIsContentInvalidated = true;
+ }
+}
} // namespace sk_app

Powered by Google App Engine
This is Rietveld 408576698