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

Unified Diff: tools/viewer/sk_app/android/surface_glue_android.h

Issue 2001153002: Move inval dedup to Window for wider usages. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/surface_glue_android.h
diff --git a/tools/viewer/sk_app/android/surface_glue_android.h b/tools/viewer/sk_app/android/surface_glue_android.h
index 7ffba3080a9644b9125fb5bae3e08dd47f2dd1cc..f803fadcc26c0659ae1c1d59f75ebbc195de00af 100644
--- a/tools/viewer/sk_app/android/surface_glue_android.h
+++ b/tools/viewer/sk_app/android/surface_glue_android.h
@@ -12,7 +12,6 @@
#include <android/native_window_jni.h>
-#include "../private/SkMutex.h"
#include "../Application.h"
#include "../Window.h"
@@ -54,9 +53,6 @@ struct SkiaAndroidApp {
// This must be called in SkiaAndroidApp's own pthread because the JNIEnv is thread sensitive
void setTitle(const char* title) const;
- // This posts a kContentInvalidated message if there's no such message currently in the queue
- void inval();
-
private:
pthread_t fThread;
ANativeWindow* fNativeWindow;
@@ -65,9 +61,6 @@ private:
JNIEnv* fPThreadEnv;
jmethodID fSetTitleMethodID;
- bool fIsContentInvalidated = false; // use this to avoid duplicate invalidate events
- SkMutex fMutex;
-
// This must be called in SkiaAndroidApp's own pthread because the JNIEnv is thread sensitive
~SkiaAndroidApp();

Powered by Google App Engine
This is Rietveld 408576698