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

Issue 11234008: Enable texture readback support for Android (Closed)

Created:
8 years, 2 months ago by David Trainor- moved to gerrit
Modified:
8 years, 2 months ago
Reviewers:
mazda, jam, no sievers, piman
CC:
chromium-reviews, yusukes+watch_chromium.org, penghuang+watch_chromium.org, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su, Ted C
Visibility:
Public.

Description

Enable texture readback support for Android - Adjust the GLHelper to include methods we can use for our texture readback support. - Tie it into the RenderWidgetHostViewAndroid/ContentViewCore/Compositor. BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=163455

Patch Set 1 #

Patch Set 2 : Forgot to remove local GLHelper from a method #

Total comments: 8

Patch Set 3 : Addressed comments #

Total comments: 6

Patch Set 4 : Fixed more nits. #

Patch Set 5 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -57 lines) Patch
M content/browser/android/content_view_core_impl.h View 3 chunks +7 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 3 chunks +20 lines, -0 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M content/browser/renderer_host/image_transport_factory_android.h View 1 2 3 4 2 chunks +9 lines, -1 line 0 comments Download
M content/browser/renderer_host/image_transport_factory_android.cc View 2 chunks +10 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 3 chunks +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 5 chunks +57 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M content/common/gpu/client/gl_helper.h View 1 2 1 chunk +26 lines, -8 lines 0 comments Download
M content/common/gpu/client/gl_helper.cc View 1 2 6 chunks +77 lines, -29 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentView.java View 1 chunk +1 line, -5 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 2 chunks +19 lines, -4 lines 0 comments Download
M content/public/browser/android/compositor.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/android/content_view_core.h View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
David Trainor- moved to gerrit
Hey guys. Added another GL-related API we need to grab snapshots. Thanks!
8 years, 2 months ago (2012-10-19 20:44:33 UTC) #1
jam
On 2012/10/19 20:44:33, dtrainor wrote: > Hey guys. Added another GL-related API we need to ...
8 years, 2 months ago (2012-10-19 21:14:09 UTC) #2
piman
nits, otherwise LGTM for content/ stuff. I haven't reviewed any of the java bits. https://chromiumcodereview.appspot.com/11234008/diff/1001/content/browser/renderer_host/compositor_impl_android.cc ...
8 years, 2 months ago (2012-10-19 22:10:10 UTC) #3
David Trainor- moved to gerrit
jam@: Sorry for the confusion! Mainly the content/public bits to make sure you're okay with ...
8 years, 2 months ago (2012-10-19 22:33:54 UTC) #4
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/11234008/diff/1001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://chromiumcodereview.appspot.com/11234008/diff/1001/content/browser/renderer_host/compositor_impl_android.cc#newcode242 content/browser/renderer_host/compositor_impl_android.cc:242: (unsigned char*) bitmap.pixels()); On 2012/10/19 22:10:10, piman wrote: > ...
8 years, 2 months ago (2012-10-19 23:11:26 UTC) #5
piman
On Fri, Oct 19, 2012 at 3:33 PM, <dtrainor@chromium.org> wrote: > jam@: Sorry for the ...
8 years, 2 months ago (2012-10-20 00:00:24 UTC) #6
no sievers
https://chromiumcodereview.appspot.com/11234008/diff/8001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://chromiumcodereview.appspot.com/11234008/diff/8001/content/browser/android/content_view_core_impl.cc#newcode449 content/browser/android/content_view_core_impl.cc:449: if (!CompositorImpl::IsInitialized()) Can you move this check to RWHVA? ...
8 years, 2 months ago (2012-10-20 00:42:36 UTC) #7
mazda
gl_helper lgtm
8 years, 2 months ago (2012-10-20 00:57:42 UTC) #8
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/11234008/diff/8001/content/public/browser/android/compositor.h File content/public/browser/android/compositor.h (right): https://chromiumcodereview.appspot.com/11234008/diff/8001/content/public/browser/android/compositor.h#newcode76 content/public/browser/android/compositor.h:76: gfx::JavaBitmap& bitmap) = 0; For ContentViewCore#getBitmap it is, but ...
8 years, 2 months ago (2012-10-22 08:31:07 UTC) #9
jam
On 2012/10/19 22:33:54, dtrainor wrote: > jam@: Sorry for the confusion! Mainly the content/public bits ...
8 years, 2 months ago (2012-10-22 16:22:53 UTC) #10
no sievers
Might it still make sense to add that other API to ContentViewCore also (instead of ...
8 years, 2 months ago (2012-10-22 17:39:15 UTC) #11
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/11234008/diff/8001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://chromiumcodereview.appspot.com/11234008/diff/8001/content/browser/android/content_view_core_impl.cc#newcode449 content/browser/android/content_view_core_impl.cc:449: if (!CompositorImpl::IsInitialized()) On 2012/10/20 00:42:36, Daniel Sievers wrote: > ...
8 years, 2 months ago (2012-10-22 17:56:16 UTC) #12
no sievers
On 2012/10/22 17:56:16, dtrainor wrote: > https://chromiumcodereview.appspot.com/11234008/diff/8001/content/browser/android/content_view_core_impl.cc > File content/browser/android/content_view_core_impl.cc (right): > > https://chromiumcodereview.appspot.com/11234008/diff/8001/content/browser/android/content_view_core_impl.cc#newcode449 > ...
8 years, 2 months ago (2012-10-22 18:03:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtrainor@chromium.org/11234008/6005
8 years, 2 months ago (2012-10-22 18:04:54 UTC) #14
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/image_transport_factory_android.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 2 months ago (2012-10-22 21:49:47 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtrainor@chromium.org/11234008/2019
8 years, 2 months ago (2012-10-22 22:22:15 UTC) #16
commit-bot: I haz the power
8 years, 2 months ago (2012-10-23 00:27:22 UTC) #17
Change committed as 163455

Powered by Google App Engine
This is Rietveld 408576698