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

Issue 10795058: Add GL surface creation for Android. (Closed)

Created:
8 years, 5 months ago by no sievers
Modified:
8 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, apatrick_chromium
Visibility:
Public.

Description

Add GL surface creation for Android. This creates either a texture transport surface (for compositor use) or a native window surface. Also add a way to look up a surface handle that cannot be serialized over IPC. We simply get it from the tracker as we are running the GPU thread in the browser process. BUG=136923 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148715

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 1

Patch Set 3 : add interface for surface lookup #

Total comments: 2

Patch Set 4 : reset instance #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -5 lines) Patch
M content/browser/gpu/gpu_surface_tracker.h View 1 2 3 4 3 chunks +7 lines, -2 lines 0 comments Download
M content/browser/gpu/gpu_surface_tracker.cc View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
A content/common/gpu/gpu_surface_lookup.h View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A content/common/gpu/gpu_surface_lookup.cc View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
M content/common/gpu/image_transport_surface_android.cc View 1 2 1 chunk +31 lines, -3 lines 0 comments Download
M content/content_common.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
no sievers
Is this way too ugly? I could also fudge the pointer through the IPC channel ...
8 years, 5 months ago (2012-07-20 23:52:26 UTC) #1
apatrick_chromium
https://chromiumcodereview.appspot.com/10795058/diff/1/content/browser/gpu/gpu_surface_tracker.cc File content/browser/gpu/gpu_surface_tracker.cc (right): https://chromiumcodereview.appspot.com/10795058/diff/1/content/browser/gpu/gpu_surface_tracker.cc#newcode114 content/browser/gpu/gpu_surface_tracker.cc:114: GpuSurfaceTracker* tracker = GpuSurfaceTracker::GetInstance(); This member function is not ...
8 years, 5 months ago (2012-07-24 18:34:16 UTC) #2
no sievers
Removed the code where it touches the refcount - the owner on the UI thread ...
8 years, 5 months ago (2012-07-26 21:21:16 UTC) #3
piman
http://codereview.chromium.org/10795058/diff/5001/content/common/gpu/image_transport_surface_android.cc File content/common/gpu/image_transport_surface_android.cc (right): http://codereview.chromium.org/10795058/diff/5001/content/common/gpu/image_transport_surface_android.cc#newcode11 content/common/gpu/image_transport_surface_android.cc:11: gfx::AcceleratedWidget GetNativeWidgetAndroid(int surface_id); mmh, this is just here to ...
8 years, 5 months ago (2012-07-26 21:33:28 UTC) #4
no sievers
Well, I could make a real interface, something like GpuSurfaceLookup. Then GpuSurfaceTracker could implement it ...
8 years, 5 months ago (2012-07-26 21:38:59 UTC) #5
piman
On Thu, Jul 26, 2012 at 2:38 PM, <sievers@chromium.org> wrote: > Well, I could make ...
8 years, 5 months ago (2012-07-26 21:40:42 UTC) #6
no sievers
Done.
8 years, 5 months ago (2012-07-26 23:47:10 UTC) #7
apatrick_chromium
http://codereview.chromium.org/10795058/diff/12001/content/browser/gpu/gpu_surface_tracker.cc File content/browser/gpu/gpu_surface_tracker.cc (right): http://codereview.chromium.org/10795058/diff/12001/content/browser/gpu/gpu_surface_tracker.cc#newcode17 content/browser/gpu/gpu_surface_tracker.cc:17: GpuSurfaceTracker* GpuSurfaceTracker::GetInstance() { Why not delete this GetInstance and ...
8 years, 5 months ago (2012-07-26 23:54:21 UTC) #8
piman
one last thing, then I think it's good. http://codereview.chromium.org/10795058/diff/12001/content/browser/gpu/gpu_surface_tracker.cc File content/browser/gpu/gpu_surface_tracker.cc (right): http://codereview.chromium.org/10795058/diff/12001/content/browser/gpu/gpu_surface_tracker.cc#newcode14 content/browser/gpu/gpu_surface_tracker.cc:14: GpuSurfaceTracker::~GpuSurfaceTracker() ...
8 years, 5 months ago (2012-07-26 23:55:52 UTC) #9
no sievers
Hmm, since the Singleton is a template does that not make it incompatible with the ...
8 years, 5 months ago (2012-07-27 00:39:54 UTC) #10
no sievers
Done. On 2012/07/26 23:55:52, piman wrote: > one last thing, then I think it's good. ...
8 years, 5 months ago (2012-07-27 00:40:09 UTC) #11
apatrick_chromium
Fair enough. LGTM.
8 years, 5 months ago (2012-07-27 00:54:37 UTC) #12
no sievers
Add jam for gyp change.
8 years, 5 months ago (2012-07-27 01:31:15 UTC) #13
jam
On 2012/07/27 01:31:15, Daniel Sievers wrote: > Add jam for gyp change. lgtm feel free ...
8 years, 5 months ago (2012-07-27 02:04:15 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sievers@chromium.org/10795058/14002
8 years, 5 months ago (2012-07-27 02:08:18 UTC) #15
commit-bot: I haz the power
Try job failure for 10795058-14002 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-27 02:25:34 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sievers@chromium.org/10795058/16002
8 years, 5 months ago (2012-07-27 02:29:08 UTC) #17
commit-bot: I haz the power
8 years, 5 months ago (2012-07-27 03:53:14 UTC) #18
Change committed as 148715

Powered by Google App Engine
This is Rietveld 408576698