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

Issue 17859002: Allow WebExternalTextureLayers to receive a bitmap along with a mailbox (Closed)

Created:
7 years, 6 months ago by jbauman
Modified:
7 years, 5 months ago
Reviewers:
danakj, jamesr, nduca, boliu, piman
CC:
chromium-reviews, cc-bugs_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Allow WebExternalTextureLayers to receive a bitmap along with a mailbox When using the software renderer, texture layers can't be drawn from directly. Instead allow the WebExternalTextureLayer to request a bitmap that will be used to draw. BUG=151713 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210773

Patch Set 1 #

Total comments: 3

Patch Set 2 : use ShareMemory path #

Total comments: 7

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -18 lines) Patch
M cc/layers/texture_layer.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M cc/layers/texture_layer_client.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M cc/layers/texture_layer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/software_renderer.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 3 chunks +7 lines, -0 lines 0 comments Download
M ui/compositor/layer.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M ui/compositor/layer.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M webkit/renderer/compositor_bindings/compositor_bindings.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A webkit/renderer/compositor_bindings/web_external_bitmap_impl.h View 1 2 3 4 5 1 chunk +47 lines, -0 lines 0 comments Download
A webkit/renderer/compositor_bindings/web_external_bitmap_impl.cc View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
M webkit/renderer/compositor_bindings/web_external_texture_layer_impl.h View 1 2 3 chunks +13 lines, -4 lines 0 comments Download
M webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc View 1 2 3 4 5 3 chunks +36 lines, -6 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
jbauman
Nat, could you see if this approach looks right? This goes with https://codereview.chromium.org/17859003/ .
7 years, 6 months ago (2013-06-26 11:33:17 UTC) #1
tfarina
https://codereview.chromium.org/17859002/diff/1/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/17859002/diff/1/cc/resources/resource_provider.cc#newcode280 cc/resources/resource_provider.cc:280: SkAutoLockPixels bitmapLock(bitmap); minornit: bitmap_lock
7 years, 6 months ago (2013-06-26 16:27:37 UTC) #2
danakj
https://codereview.chromium.org/17859002/diff/1/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/17859002/diff/1/cc/trees/layer_tree_host.cc#newcode127 cc/trees/layer_tree_host.cc:127: using_software_renderer_ = !output_surface->context3d(); This would be wrong on WebView ...
7 years, 6 months ago (2013-06-26 19:09:57 UTC) #3
nduca
probably best to have the ubercomp types look at this. I'm pretty far behind on ...
7 years, 6 months ago (2013-06-26 19:57:48 UTC) #4
piman
Could we go directly to shared memory instead? The rationale is that: - we already ...
7 years, 6 months ago (2013-06-26 20:20:27 UTC) #5
jbauman
On 2013/06/26 20:20:27, piman wrote: > Could we go directly to shared memory instead? The ...
7 years, 6 months ago (2013-06-26 20:21:41 UTC) #6
boliu
Sorry for the delay https://codereview.chromium.org/17859002/diff/1/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/17859002/diff/1/cc/trees/layer_tree_host.cc#newcode127 cc/trees/layer_tree_host.cc:127: using_software_renderer_ = !output_surface->context3d(); On 2013/06/26 ...
7 years, 5 months ago (2013-06-28 01:27:29 UTC) #7
jbauman
Ok, I've modified the patch to use SharedMemory. PTAL. On 2013/06/26 20:20:27, piman wrote: > ...
7 years, 5 months ago (2013-07-01 22:15:55 UTC) #8
piman
https://codereview.chromium.org/17859002/diff/11001/cc/layers/texture_layer.cc File cc/layers/texture_layer.cc (right): https://codereview.chromium.org/17859002/diff/11001/cc/layers/texture_layer.cc#newcode163 cc/layers/texture_layer.cc:163: return !layer_tree_host()->UsingGLRenderer(); note: layer_tree_host() is NULL when the layer ...
7 years, 5 months ago (2013-07-01 22:45:01 UTC) #9
jbauman
https://codereview.chromium.org/17859002/diff/11001/cc/layers/texture_layer.cc File cc/layers/texture_layer.cc (right): https://codereview.chromium.org/17859002/diff/11001/cc/layers/texture_layer.cc#newcode163 cc/layers/texture_layer.cc:163: return !layer_tree_host()->UsingGLRenderer(); On 2013/07/01 22:45:01, piman wrote: > note: ...
7 years, 5 months ago (2013-07-02 00:00:40 UTC) #10
piman
https://codereview.chromium.org/17859002/diff/11001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/17859002/diff/11001/content/renderer/render_thread_impl.cc#newcode755 content/renderer/render_thread_impl.cc:755: #if defined(OS_POSIX) On 2013/07/02 00:00:40, jbauman wrote: > On ...
7 years, 5 months ago (2013-07-02 04:00:09 UTC) #11
jbauman
https://codereview.chromium.org/17859002/diff/11001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/17859002/diff/11001/content/renderer/render_thread_impl.cc#newcode755 content/renderer/render_thread_impl.cc:755: #if defined(OS_POSIX) On 2013/07/02 04:00:09, piman wrote: > On ...
7 years, 5 months ago (2013-07-02 20:16:19 UTC) #12
piman
OK, LGTM!
7 years, 5 months ago (2013-07-02 20:21:51 UTC) #13
piman
OK, LGTM!
7 years, 5 months ago (2013-07-02 20:21:51 UTC) #14
jbauman
Nat, could I get an OWNERS review for webkit/renderer/compositor_bindings?
7 years, 5 months ago (2013-07-04 00:13:22 UTC) #15
jamesr
lgtm https://codereview.chromium.org/17859002/diff/43001/webkit/renderer/compositor_bindings/web_external_bitmap_impl.h File webkit/renderer/compositor_bindings/web_external_bitmap_impl.h (right): https://codereview.chromium.org/17859002/diff/43001/webkit/renderer/compositor_bindings/web_external_bitmap_impl.h#newcode36 webkit/renderer/compositor_bindings/web_external_bitmap_impl.h:36: base::SharedMemory* getSharedMemory() { return shared_memory_.get(); } this is ...
7 years, 5 months ago (2013-07-04 00:32:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/17859002/54001
7 years, 5 months ago (2013-07-10 00:38:33 UTC) #17
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-07-10 00:47:53 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/17859002/54001
7 years, 5 months ago (2013-07-10 00:54:11 UTC) #19
commit-bot: I haz the power
7 years, 5 months ago (2013-07-10 07:33:32 UTC) #20
Message was sent while issue was closed.
Change committed as 210773

Powered by Google App Engine
This is Rietveld 408576698