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

Issue 2092913002: cc::SkiaRenderer hack prototype (Closed)

Created:
4 years, 6 months ago by enne (OOO)
Modified:
3 years, 10 months ago
Reviewers:
danakj, bsalomon, piman
CC:
bsalomon_chromium, cc-bugs_chromium.org, chromium-reviews, ericrk, piman, vmiura
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc::SkiaRenderer hack prototype Not for landing. Mostly just to understand what needs to be changed in SoftwareRenderer to make this possible. Also, to potentially have something to do initial performance tests against. CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Patch Set 1 #

Patch Set 2 : Rebase past sunnyps changes to ResourceProvider #

Total comments: 4

Patch Set 3 : More generic resource provider funcs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -157 lines) Patch
M cc/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A + cc/output/skia_renderer.h View 1 6 chunks +21 lines, -23 lines 0 comments Download
A + cc/output/skia_renderer.cc View 1 2 31 chunks +200 lines, -117 lines 0 comments Download
M cc/output/software_renderer.cc View 1 2 5 chunks +14 lines, -16 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 2 chunks +20 lines, -1 line 0 comments Download
M cc/resources/resource_provider.cc View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
M cc/surfaces/display.cc View 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
enne (OOO)
Gets pixels on screen. Unsupported features like filters and masks just #if 0'd out. Videos ...
4 years, 6 months ago (2016-06-23 22:19:02 UTC) #4
piman
Exciting!! https://codereview.chromium.org/2092913002/diff/20001/cc/output/skia_renderer.cc File cc/output/skia_renderer.cc (right): https://codereview.chromium.org/2092913002/diff/20001/cc/output/skia_renderer.cc#newcode305 cc/output/skia_renderer.cc:305: // TODO(enne): doot dee doo lol. https://codereview.chromium.org/2092913002/diff/20001/cc/output/skia_renderer.cc#newcode497 cc/output/skia_renderer.cc:497: ...
4 years, 6 months ago (2016-06-23 23:27:09 UTC) #7
danakj
https://codereview.chromium.org/2092913002/diff/20001/cc/output/skia_renderer.cc File cc/output/skia_renderer.cc (right): https://codereview.chromium.org/2092913002/diff/20001/cc/output/skia_renderer.cc#newcode497 cc/output/skia_renderer.cc:497: const SkImage* image = lock.sk_image(); On 2016/06/23 23:27:09, piman ...
4 years, 6 months ago (2016-06-23 23:31:20 UTC) #9
piman
On Thu, Jun 23, 2016 at 4:31 PM, <danakj@chromium.org> wrote: > > > https://codereview.chromium.org/2092913002/diff/20001/cc/output/skia_renderer.cc > ...
4 years, 6 months ago (2016-06-23 23:52:27 UTC) #10
enne (OOO)
If cc::SkiaRenderer is the future, then I eventually seeing Renderer/DirectRenderer/*Renderer all collapsing together into a ...
4 years, 6 months ago (2016-06-24 00:27:52 UTC) #11
bsalomon
4 years, 6 months ago (2016-06-24 15:25:07 UTC) #13
For some reason inline commenting on skia_renderer.cc isn't working for me.
Anyway, (somewhat confusingly) GrSurfaceDesc::fSampleCnt should be 0 not 1 for
non-MSAA rendering.

https://codereview.chromium.org/2092913002/diff/20001/cc/output/skia_renderer.cc
File cc/output/skia_renderer.cc (right):

https://codereview.chromium.org/2092913002/diff/20001/cc/output/skia_renderer...
cc/output/skia_renderer.cc:497: const SkImage* image = lock.sk_image();
On 2016/06/23 23:27:09, piman wrote:
> I wonder if we could make software and GL look closer, e.g. by using a SkImage
> in the software case too (I think that's possible?), and maybe by merging
> ScopedReadLockSoftware and ScopedReadLockGr into a ScopedReadLockSkImage... I
> think the GrContext (in the GL case) could come from the ResourceProvider,
since
> it's using the same context as the OutputSurface.

SkImage should be able to replace SkBitmap in the SW renderer as well.

Powered by Google App Engine
This is Rietveld 408576698