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

Issue 10918258: Add CC software renderer. (Closed)

Created:
8 years, 3 months ago by aelias_OOO_until_Jul13
Modified:
8 years, 3 months ago
Reviewers:
danakj, jamesr, nduca, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, jamesr, danakj
Base URL:
http://git.chromium.org/chromium/src.git@gladapter
Visibility:
Public.

Description

Add CC software renderer. This new renderer adds support for the compositor to output to a software-bitmap surface instead of a GL context. It uses Skia to interpret the CCDrawQuads and configures the resource provider to only use bitmap-backed resources. During initialization, the host checks whether a GL or software output surface is available and initializes the appropriate renderer. The basic texture and solid-color based quad types are supported, along with alpha, clipping and 3d transformations. Render surfaces and video are not yet supported. BUG=124671 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158396

Patch Set 1 #

Total comments: 5

Patch Set 2 : Change to OutputDevice API and remove "using namespace WebKit" #

Total comments: 10

Patch Set 3 : Add CCRendererSoftwareTest smoke tests #

Patch Set 4 : Fixed Clang errors #

Patch Set 5 : Rebase and remove accidentally added flag code #

Patch Set 6 : Fix license headers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+601 lines, -15 lines) Patch
M cc/CCDirectRenderer.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/CCDirectRenderer.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/CCLayerTreeHostImpl.cpp View 1 2 3 4 2 chunks +9 lines, -10 lines 0 comments Download
M cc/CCRendererGL.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/CCRendererGL.cpp View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A cc/CCRendererSoftware.h View 1 2 3 4 5 1 chunk +74 lines, -0 lines 0 comments Download
A cc/CCRendererSoftware.cpp View 1 2 3 4 5 1 chunk +280 lines, -0 lines 0 comments Download
A cc/CCRendererSoftwareTest.cpp View 1 2 3 4 1 chunk +162 lines, -0 lines 0 comments Download
M cc/CCResourceProvider.cpp View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M cc/cc.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M cc/test/FakeWebCompositorOutputSurface.h View 1 2 4 chunks +17 lines, -0 lines 0 comments Download
A cc/test/FakeWebCompositorSoftwareOutputDevice.h View 1 2 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
aelias_OOO_until_Jul13
Here it is again in the Chromium tree. It's close to what I uploaded before, ...
8 years, 3 months ago (2012-09-15 03:44:11 UTC) #1
jamesr
Seems pretty reasonable, but I'd like to get at least some sort of smoke tests ...
8 years, 3 months ago (2012-09-17 20:57:23 UTC) #2
nduca
https://codereview.chromium.org/10918258/diff/1/cc/CCDirectRenderer.h File cc/CCDirectRenderer.h (right): https://codereview.chromium.org/10918258/diff/1/cc/CCDirectRenderer.h#newcode99 cc/CCDirectRenderer.h:99: virtual bool flippedFramebuffer() const = 0; didn't we just ...
8 years, 3 months ago (2012-09-17 21:07:28 UTC) #3
aelias_OOO_until_Jul13
On 2012/09/17 20:57:23, jamesr wrote: > Seems pretty reasonable, but I'd like to get at ...
8 years, 3 months ago (2012-09-17 21:24:34 UTC) #4
nduca
There should be some unit tests that draw some quads to a bitmap skpicture and ...
8 years, 3 months ago (2012-09-17 21:28:11 UTC) #5
aelias_OOO_until_Jul13
https://codereview.chromium.org/10918258/diff/1/cc/CCRendererSoftware.cpp File cc/CCRendererSoftware.cpp (right): https://codereview.chromium.org/10918258/diff/1/cc/CCRendererSoftware.cpp#newcode44 cc/CCRendererSoftware.cpp:44: using namespace WebKit; On 2012/09/17 20:57:24, jamesr wrote: > ...
8 years, 3 months ago (2012-09-17 21:42:01 UTC) #6
danakj
https://codereview.chromium.org/10918258/diff/6001/cc/CCLayerTreeHostImpl.cpp File cc/CCLayerTreeHostImpl.cpp (right): https://codereview.chromium.org/10918258/diff/6001/cc/CCLayerTreeHostImpl.cpp#newcode691 cc/CCLayerTreeHostImpl.cpp:691: renderer = CCRendererSoftware::create(this, resourceProvider.get(), contextRef->softwareDevice()); Should there be an ...
8 years, 3 months ago (2012-09-19 18:35:14 UTC) #7
aelias_OOO_until_Jul13
https://codereview.chromium.org/10918258/diff/6001/cc/CCLayerTreeHostImpl.cpp File cc/CCLayerTreeHostImpl.cpp (right): https://codereview.chromium.org/10918258/diff/6001/cc/CCLayerTreeHostImpl.cpp#newcode691 cc/CCLayerTreeHostImpl.cpp:691: renderer = CCRendererSoftware::create(this, resourceProvider.get(), contextRef->softwareDevice()); On 2012/09/19 18:35:14, danakj ...
8 years, 3 months ago (2012-09-19 19:58:26 UTC) #8
danakj
https://codereview.chromium.org/10918258/diff/6001/cc/CCLayerTreeHostImpl.cpp File cc/CCLayerTreeHostImpl.cpp (right): https://codereview.chromium.org/10918258/diff/6001/cc/CCLayerTreeHostImpl.cpp#newcode691 cc/CCLayerTreeHostImpl.cpp:691: renderer = CCRendererSoftware::create(this, resourceProvider.get(), contextRef->softwareDevice()); On 2012/09/19 19:58:27, aelias ...
8 years, 3 months ago (2012-09-19 20:06:17 UTC) #9
aelias_OOO_until_Jul13
OK, I added some smoke tests. Please take another look.
8 years, 3 months ago (2012-09-20 23:09:03 UTC) #10
enne (OOO)
You're going to need to fix Clang errors from your inlined virtuals, but LGTM other ...
8 years, 3 months ago (2012-09-21 21:35:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/10918258/24001
8 years, 3 months ago (2012-09-24 19:07:43 UTC) #12
commit-bot: I haz the power
Retried try job too often for step(s) build
8 years, 3 months ago (2012-09-24 19:21:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/10918258/22023
8 years, 3 months ago (2012-09-24 19:32:12 UTC) #14
commit-bot: I haz the power
8 years, 3 months ago (2012-09-24 21:32:59 UTC) #15
Change committed as 158396

Powered by Google App Engine
This is Rietveld 408576698