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

Issue 2324723002: Speed up quad deserialization. (Closed)

Created:
4 years, 3 months ago by hubbe
Modified:
4 years, 3 months ago
Reviewers:
danakj
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Speed up quad deserialization. Separate the largest subclass quad size for allocation and serialization since they are different numbers. BUG=644443 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel

Patch Set 1 #

Patch Set 2 : unit test fix #

Total comments: 2

Patch Set 3 : comment added #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -12 lines) Patch
M cc/ipc/cc_param_traits.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/quads/draw_quad_unittest.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download
M cc/quads/largest_draw_quad.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M cc/quads/largest_draw_quad.cc View 2 chunks +7 lines, -3 lines 0 comments Download
M cc/quads/render_pass.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (13 generated)
yzshen1
One drive-by comment Thanks for working on this! https://codereview.chromium.org/2324723002/diff/20001/cc/quads/largest_draw_quad.h File cc/quads/largest_draw_quad.h (right): https://codereview.chromium.org/2324723002/diff/20001/cc/quads/largest_draw_quad.h#newcode15 cc/quads/largest_draw_quad.h:15: CC_EXPORT ...
4 years, 3 months ago (2016-09-08 18:57:13 UTC) #9
hubbe1
https://codereview.chromium.org/2324723002/diff/20001/cc/quads/largest_draw_quad.h File cc/quads/largest_draw_quad.h (right): https://codereview.chromium.org/2324723002/diff/20001/cc/quads/largest_draw_quad.h#newcode15 cc/quads/largest_draw_quad.h:15: CC_EXPORT size_t LargestDrawQuadSerializedSize(); On 2016/09/08 18:57:13, yzshen1 wrote: > ...
4 years, 3 months ago (2016-09-08 21:05:47 UTC) #13
hubbe
4 years, 3 months ago (2016-09-08 21:08:52 UTC) #15
danakj
I'm going to have to understand https://codereview.chromium.org/2229953003 first. It's claiming the largest quad is YUVQuad ...
4 years, 3 months ago (2016-09-08 21:14:26 UTC) #16
hubbe
On 2016/09/08 21:14:26, danakj wrote: > I'm going to have to understand https://codereview.chromium.org/2229953003 > first. ...
4 years, 3 months ago (2016-09-08 21:25:21 UTC) #17
danakj
4 years, 3 months ago (2016-09-08 21:27:38 UTC) #18
On Thu, Sep 8, 2016 at 2:25 PM, <hubbe@chromium.org> wrote:

> On 2016/09/08 21:14:26, danakj wrote:
> > I'm going to have to understand https://codereview.chromium.
> org/2229953003
> > first. It's claiming the largest quad is YUVQuad + ColorSpace. If
> ColorSpace
> is
> > part of the quad then it's already accounted for. If it's not then it's
> not
> part
> > of the largest size. I'm super confused why that was done, and suspect
> that
> it's
> > not what you intended. Esp cuz that CL does not actually change the defn
> of
> any
> > DrawQuads.
>
> Hmm. A valid point.
> I was thinking that the YuvVideoDrawQuad contained a pointer to a
> gfx::ColorSpace, but that's not the case.
> My earlier CL was reverted because of an IPC encoding error, so I had
> thought
> that I needed to increase the
> largest quad size to fix it, which it did. However, I now realize that my
> assumptions were incorrect.
>
> Unfortunately the ipc error only occured in some obscure webrtc test, so
> it's
> not exactly easy to reproduce.
> It seems like just removing the "+ sizeof(gfx::ColorSpace)" should work,
> but
> will likely trigger the previous
> IPC error, but perhaps I should focus on trying to figure that one out
> instead....
>

Ya I think so. (And ya, DrawQuads can't have pointers for IPC reasons)


>
>
> https://codereview.chromium.org/2324723002/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698