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

Issue 11570027: Adding support for per vertex opacity on textured layer (Closed)

Created:
8 years ago by Jerome
Modified:
8 years ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, cc-bugs_chromium.org
Visibility:
Public.

Description

Adding support for per vertex opacity on textured layer BUG=165509 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173310

Patch Set 1 #

Patch Set 2 : fixing unittest #

Total comments: 21

Patch Set 3 : fix issues from comments #

Patch Set 4 : fixing inconsistent 1 vs 1.0f #

Patch Set 5 : remove 0.5f offset #

Patch Set 6 : remove integer math in shader #

Patch Set 7 : ping #

Total comments: 4

Patch Set 8 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -90 lines) Patch
M cc/draw_quad_unittest.cc View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M cc/geometry_binding.cc View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M cc/gl_renderer.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M cc/gl_renderer.cc View 1 2 3 4 5 6 7 8 chunks +20 lines, -11 lines 0 comments Download
M cc/gl_renderer_draw_cache.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M cc/heads_up_display_layer_impl.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 chunks +9 lines, -8 lines 0 comments Download
M cc/nine_patch_layer_impl.cc View 1 2 3 1 chunk +9 lines, -8 lines 0 comments Download
M cc/scrollbar_layer_impl.cc View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download
M cc/shader.h View 1 2 3 4 5 6 7 3 chunks +10 lines, -3 lines 0 comments Download
M cc/shader.cc View 1 2 3 4 5 6 7 5 chunks +35 lines, -13 lines 0 comments Download
M cc/test/geometry_test_utils.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M cc/test/render_pass_test_common.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M cc/texture_draw_quad.h View 2 chunks +3 lines, -0 lines 0 comments Download
M cc/texture_draw_quad.cc View 1 2 3 chunks +52 lines, -28 lines 0 comments Download
M cc/texture_layer.h View 2 chunks +5 lines, -0 lines 0 comments Download
M cc/texture_layer.cc View 3 chunks +20 lines, -0 lines 0 comments Download
M cc/texture_layer_impl.h View 2 chunks +6 lines, -0 lines 0 comments Download
M cc/texture_layer_impl.cc View 3 chunks +12 lines, -1 line 0 comments Download
M cc/video_layer_impl.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Jerome
I added opacity per vertex for the texture layer. Warren: Could you double check the ...
8 years ago (2012-12-14 18:16:45 UTC) #1
whunt
https://codereview.chromium.org/11570027/diff/2001/cc/geometry_binding.cc File cc/geometry_binding.cc (right): https://codereview.chromium.org/11570027/diff/2001/cc/geometry_binding.cc#newcode38 cc/geometry_binding.cc:38: for (int i = 0; i < 8; i++) ...
8 years ago (2012-12-14 21:13:45 UTC) #2
jamesr
The constants are a bit inconsistent in this patch. For floats, "0.0f" / "1.0f" are ...
8 years ago (2012-12-14 21:18:19 UTC) #3
enne (OOO)
https://codereview.chromium.org/11570027/diff/2001/cc/heads_up_display_layer_impl.cc File cc/heads_up_display_layer_impl.cc (right): https://codereview.chromium.org/11570027/diff/2001/cc/heads_up_display_layer_impl.cc#newcode94 cc/heads_up_display_layer_impl.cc:94: const float vertex_opacity[] = {1, 1, 1, 1}; I ...
8 years ago (2012-12-14 21:21:05 UTC) #4
whunt
I agree that const is useful for communicating expectations and is appropriate in many cases. ...
8 years ago (2012-12-14 21:30:44 UTC) #5
Jerome
https://codereview.chromium.org/11570027/diff/2001/cc/geometry_binding.cc File cc/geometry_binding.cc (right): https://codereview.chromium.org/11570027/diff/2001/cc/geometry_binding.cc#newcode38 cc/geometry_binding.cc:38: for (int i = 0; i < 8; i++) ...
8 years ago (2012-12-14 21:48:47 UTC) #6
jamesr1
On Fri, Dec 14, 2012 at 1:48 PM, <jscholler@chromium.org> wrote: > > https://codereview.chromium.**org/11570027/diff/2001/cc/** > geometry_binding.cc<https://codereview.chromium.org/11570027/diff/2001/cc/geometry_binding.cc> ...
8 years ago (2012-12-14 21:49:57 UTC) #7
Jerome
Nevermind, I changed the code to do the division in integer rather than float. Hopefully ...
8 years ago (2012-12-14 22:26:46 UTC) #8
whunt
https://codereview.chromium.org/11570027/diff/2001/cc/geometry_binding.cc File cc/geometry_binding.cc (right): https://codereview.chromium.org/11570027/diff/2001/cc/geometry_binding.cc#newcode38 cc/geometry_binding.cc:38: for (int i = 0; i < 8; i++) ...
8 years ago (2012-12-14 22:38:43 UTC) #9
jamesr
style nit but, eh, whatever lgtm https://codereview.chromium.org/11570027/diff/9022/cc/texture_draw_quad.cc File cc/texture_draw_quad.cc (right): https://codereview.chromium.org/11570027/diff/9022/cc/texture_draw_quad.cc#newcode27 cc/texture_draw_quad.cc:27: bool needs_blending = ...
8 years ago (2012-12-15 00:48:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jscholler@chromium.org/11570027/9022
8 years ago (2012-12-15 00:53:59 UTC) #11
commit-bot: I haz the power
Failed to apply patch for cc/gl_renderer_draw_cache.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years ago (2012-12-15 00:54:03 UTC) #12
whunt
lgtm https://codereview.chromium.org/11570027/diff/9022/cc/geometry_binding.cc File cc/geometry_binding.cc (right): https://codereview.chromium.org/11570027/diff/9022/cc/geometry_binding.cc#newcode38 cc/geometry_binding.cc:38: for (int i = 0; i < 8; ...
8 years ago (2012-12-15 00:55:00 UTC) #13
jamesr
On 2012/12/15 00:55:00, whunt wrote: > https://codereview.chromium.org/11570027/diff/9022/cc/shader.cc#newcode173 > cc/shader.cc:173: gl_Position = matrix[int(a_index * 0.25)] * ...
8 years ago (2012-12-15 00:57:37 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jscholler@chromium.org/11570027/14001
8 years ago (2012-12-15 17:10:53 UTC) #15
commit-bot: I haz the power
8 years ago (2012-12-15 20:17:20 UTC) #16
Message was sent while issue was closed.
Change committed as 173310

Powered by Google App Engine
This is Rietveld 408576698