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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 146873002: Handle Left out paths on Android/Aura for Async ReadBack. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Provide the config support for getscaledBitmap. Created 6 years, 10 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: content/browser/renderer_host/render_widget_host_view_android.h
diff --git a/content/browser/renderer_host/render_widget_host_view_android.h b/content/browser/renderer_host/render_widget_host_view_android.h
index 5f20ebf1693c9dcbeda3fea70df7a5de7449b17c..8b6bf4b7cb74ec19942e7894c2743a2e3b19057b 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.h
+++ b/content/browser/renderer_host/render_widget_host_view_android.h
@@ -227,6 +227,7 @@ class RenderWidgetHostViewAndroid
void GetScaledContentBitmap(
float scale,
gfx::Size* out_size,
+ bool config_565,
const base::Callback<void(bool, const SkBitmap&)>& result_callback);
bool PopulateBitmapWithContents(jobject jbitmap);
@@ -283,6 +284,7 @@ class RenderWidgetHostViewAndroid
scoped_ptr<cc::CopyOutputResult> result);
static void PrepareBitmapCopyOutputResult(
const gfx::Size& dst_size_in_pixel,
+ const SkBitmap::Config config,
const base::TimeTicks& start_time,
const base::Callback<void(bool, const SkBitmap&)>& callback,
scoped_ptr<cc::CopyOutputResult> result);
@@ -291,7 +293,8 @@ class RenderWidgetHostViewAndroid
void SynchronousCopyContents(
const gfx::Rect& src_subrect_in_pixel,
const gfx::Size& dst_size_in_pixel,
- const base::Callback<void(bool, const SkBitmap&)>& callback);
+ const base::Callback<void(bool, const SkBitmap&)>& callback,
+ const SkBitmap::Config config);
// The model object.
RenderWidgetHostImpl* host_;

Powered by Google App Engine
This is Rietveld 408576698