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

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: Improve Comments 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..a4698336f04b4ea1489eb7a1caaf70b84b5b4f92 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"
@@ -49,14 +48,10 @@ struct SkiaAndroidApp {
void postMessage(const Message& message) const;
void readMessage(Message* message) const;
- void paintIfNeeded();
// 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 +60,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();
« no previous file with comments | « tools/viewer/sk_app/android/Window_android.cpp ('k') | tools/viewer/sk_app/android/surface_glue_android.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698