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

Issue 11420079: Allow using a larger-than-necessary texture as cached render pass backing (Closed)

Created:
8 years, 1 month ago by jamesr
Modified:
7 years, 1 month ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Allow using a larger-than-necessary texture as cached render pass backing When moving a composited layer around the screen that requires a render pass, it's not all that unusual for the required size to be slightly different from frame to frame. This lets us use an oversized texture as the framebuffer attachment. BUG=161868 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173112

Patch Set 1 #

Total comments: 4

Patch Set 2 : test #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : seems to work #

Total comments: 8

Patch Set 6 : rebased #

Patch Set 7 : addresses feedback (on top of https://codereview.chromium.org/11543013/) #

Total comments: 3

Patch Set 8 : nits, rebased #

Patch Set 9 : win build fix - filepath literals #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -36 lines) Patch
M cc/direct_renderer.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M cc/direct_renderer.cc View 1 2 3 4 5 6 7 3 chunks +12 lines, -2 lines 0 comments Download
M cc/gl_renderer.h View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M cc/gl_renderer.cc View 1 2 3 4 5 6 7 8 chunks +30 lines, -3 lines 0 comments Download
M cc/gl_renderer_pixeltest.cc View 1 2 3 4 5 6 7 8 4 chunks +98 lines, -19 lines 1 comment Download
M cc/shader.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/shader.cc View 1 2 4 chunks +15 lines, -9 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
jamesr
This provides a decent win on the test case mentioned in the linked bug - ...
8 years, 1 month ago (2012-11-20 00:09:06 UTC) #1
enne (OOO)
lgtm. I looked through the quad drawing code, and I think this should be ok. ...
8 years, 1 month ago (2012-11-20 00:20:15 UTC) #2
danakj
http://codereview.chromium.org/11420079/diff/1/cc/direct_renderer.cc File cc/direct_renderer.cc (right): http://codereview.chromium.org/11420079/diff/1/cc/direct_renderer.cc#newcode140 cc/direct_renderer.cc:140: if (texture->id() && (!sizeAppropriate || texture->format() != requiredFormat)) I'm ...
8 years, 1 month ago (2012-11-20 00:26:33 UTC) #3
danakj
http://codereview.chromium.org/11420079/diff/1/cc/direct_renderer.cc File cc/direct_renderer.cc (right): http://codereview.chromium.org/11420079/diff/1/cc/direct_renderer.cc#newcode140 cc/direct_renderer.cc:140: if (texture->id() && (!sizeAppropriate || texture->format() != requiredFormat)) Is ...
8 years, 1 month ago (2012-11-20 00:36:41 UTC) #4
enne (OOO)
http://codereview.chromium.org/11420079/diff/1/cc/direct_renderer.cc File cc/direct_renderer.cc (right): http://codereview.chromium.org/11420079/diff/1/cc/direct_renderer.cc#newcode140 cc/direct_renderer.cc:140: if (texture->id() && (!sizeAppropriate || texture->format() != requiredFormat)) On ...
8 years, 1 month ago (2012-11-20 00:39:45 UTC) #5
danakj
http://codereview.chromium.org/11420079/diff/1/cc/direct_renderer.cc File cc/direct_renderer.cc (right): http://codereview.chromium.org/11420079/diff/1/cc/direct_renderer.cc#newcode140 cc/direct_renderer.cc:140: if (texture->id() && (!sizeAppropriate || texture->format() != requiredFormat)) On ...
8 years, 1 month ago (2012-11-20 00:41:36 UTC) #6
jamesr
I've convinced myself it's correct as well, but if I run the layout tests with ...
8 years, 1 month ago (2012-11-20 00:49:15 UTC) #7
jamesr
On 2012/11/20 00:20:15, enne wrote: > lgtm. I looked through the quad drawing code, and ...
8 years, 1 month ago (2012-11-20 02:30:33 UTC) #8
jamesr
This patch seems to works. It includes the patch from https://codereview.chromium.org/11543013/ - once we decide ...
8 years ago (2012-12-12 22:34:47 UTC) #9
enne (OOO)
I like the mask uv RectF change. That's much nicer too. :) https://codereview.chromium.org/11420079/diff/12004/cc/gl_renderer.cc File cc/gl_renderer.cc ...
8 years ago (2012-12-12 23:41:54 UTC) #10
jamesr
https://codereview.chromium.org/11420079/diff/12004/cc/gl_renderer.cc File cc/gl_renderer.cc (right): https://codereview.chromium.org/11420079/diff/12004/cc/gl_renderer.cc#newcode634 cc/gl_renderer.cc:634: float tex_scale_y = quad->rect.height() / static_cast<float>(contentsTexture->size().height()); On 2012/12/12 23:41:54, ...
8 years ago (2012-12-13 01:15:06 UTC) #11
jamesr
This patch is meant to be on top of https://codereview.chromium.org/11543013/ (which is in the CQ) ...
8 years ago (2012-12-13 01:50:42 UTC) #12
danakj
I like this, LGTM. All the helpers functions in the pixeltests are awesome. One nit ...
8 years ago (2012-12-13 20:39:50 UTC) #13
jamesr
On 2012/12/13 20:39:50, danakj wrote: > I like this, LGTM. All the helpers functions in ...
8 years ago (2012-12-13 20:48:34 UTC) #14
enne (OOO)
gl_renderer changes lgtm.
8 years ago (2012-12-13 20:48:45 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/11420079/23017
8 years ago (2012-12-13 21:27:19 UTC) #16
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-13 23:47:04 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/11420079/32003
8 years ago (2012-12-13 23:51:05 UTC) #18
commit-bot: I haz the power
Change committed as 173112
8 years ago (2012-12-14 07:13:50 UTC) #19
Nico
https://chromiumcodereview.appspot.com/11420079/diff/32003/cc/gl_renderer_pixeltest.cc File cc/gl_renderer_pixeltest.cc (right): https://chromiumcodereview.appspot.com/11420079/diff/32003/cc/gl_renderer_pixeltest.cc#newcode119 cc/gl_renderer_pixeltest.cc:119: #if !defined(OS_ANDROID) Is there a tracking bug for enabling ...
7 years, 1 month ago (2013-11-09 06:51:53 UTC) #20
jamesr
Someone is working on enabling pixel tests on Android, yes. Eric or Daniel should know ...
7 years, 1 month ago (2013-11-09 07:24:33 UTC) #21
Daniel Sievers (Google)
https://codereview.chromium.org/23868030/ adds support for OSMesa on Android. I can give it a try with that ...
7 years, 1 month ago (2013-11-11 17:56:35 UTC) #22
Daniel Sievers (Google)
Looks promising. I can run and pass all cc pixel tests on N4 that run ...
7 years, 1 month ago (2013-11-11 20:17:22 UTC) #23
Nico
7 years, 1 month ago (2013-11-17 08:20:48 UTC) #24
On Sat, Nov 9, 2013 at 6:51 AM, <thakis@chromium.org> wrote:

>
> https://chromiumcodereview.appspot.com/11420079/diff/32003/cc/gl_renderer_
> pixeltest.cc
> File cc/gl_renderer_pixeltest.cc (right):
>
> https://chromiumcodereview.appspot.com/11420079/diff/32003/cc/gl_renderer_
> pixeltest.cc#newcode119
> cc/gl_renderer_pixeltest.cc:119: #if !defined(OS_ANDROID)
> Is there a tracking bug for enabling this on android? (I realize this
> isn't the CL that added this, but I got lost somewhere along the way
> while trying to trace the origin of this, and it looks like this file
> was mostly touched by enne, who's ccd on this review)
>

enne: ^


>
> https://chromiumcodereview.appspot.com/11420079/
>

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