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

Unified Diff: content/browser/android/content_readback_handler.h

Issue 297683005: android: add Java-side support for browser compositor async readback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed tedchoc comments Created 6 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
« no previous file with comments | « no previous file | content/browser/android/content_readback_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/content_readback_handler.h
diff --git a/content/browser/android/content_readback_handler.h b/content/browser/android/content_readback_handler.h
index 11d5aa3ebeea895167619f9948836872763bb70b..403bdd0a7af20e7661f2aa13224a9c66d3607343 100644
--- a/content/browser/android/content_readback_handler.h
+++ b/content/browser/android/content_readback_handler.h
@@ -13,6 +13,10 @@
class SkBitmap;
+namespace cc {
+class CopyOutputResult;
+}
+
namespace content {
// Native side of the ContentReadbackHandler.java, which issues content
@@ -35,13 +39,17 @@ class ContentReadbackHandler {
jfloat width,
jfloat height,
jobject content_view_core);
+ void GetCompositorBitmap(JNIEnv* env,
+ jobject obj,
+ jint readback_id,
+ jlong native_window_android);
private:
virtual ~ContentReadbackHandler();
- void OnFinishContentReadback(int readback_id,
- bool success,
- const SkBitmap& bitmap);
+ void OnFinishReadback(int readback_id,
+ bool success,
+ const SkBitmap& bitmap);
base::android::ScopedJavaGlobalRef<jobject> java_obj_;
base::WeakPtrFactory<ContentReadbackHandler> weak_factory_;
« no previous file with comments | « no previous file | content/browser/android/content_readback_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698