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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 11558039: Subrect snapshot support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added intersect of src_size to actual texture_size Created 8 years 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/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index 676e3862d35749f71a8ba81e8c6cd74b8b055d62..6e9135af82a18422854d44bb6ed8af348aee5f7e 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -552,7 +552,17 @@ unsigned int ContentViewCoreImpl::GetScaledContentTexture(
if (!view)
return 0;
- return view->GetScaledContentTexture(size);
+ return GetScaledContentTexture(size, GetBounds());
no sievers 2012/12/17 21:20:02 Using GetBounds() here is racy during resizing, be
+}
+
+unsigned int ContentViewCoreImpl::GetScaledContentTexture(
+ const gfx::Size& size,
+ const gfx::Rect& src_rect) {
+ RenderWidgetHostViewAndroid* view = GetRenderWidgetHostViewAndroid();
+ if (!view)
+ return 0;
+
+ return view->GetScaledContentTexture(size, src_rect);
}
void ContentViewCoreImpl::StartContentIntent(const GURL& content_url) {
« no previous file with comments | « content/browser/android/content_view_core_impl.h ('k') | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698