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

Issue 1149893010: gpu: play skp files through the command buffer (Closed)

Created:
5 years, 6 months ago by hendrikw
Modified:
5 years, 6 months ago
CC:
chromium-reviews, piman+watch_chromium.org, reed1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu: play skp files through the command buffer Small utility program that can take an skp, or directory of skps and GPU rasterizes them to png, through chrome's command buffer. BUG= Committed: https://crrev.com/6daedb499182a5b6b0bcd54004afb7ebb3c3443b Cr-Commit-Position: refs/heads/master@{#334928} Committed: https://crrev.com/5c1da6de3bf4a9b3ebee5f3ea77f42ee2f8db4bb Cr-Commit-Position: refs/heads/master@{#335042}

Patch Set 1 : use blink decoders #

Patch Set 2 : latest #

Total comments: 7

Patch Set 3 : review comments #

Total comments: 2

Patch Set 4 : move function out of header #

Total comments: 4

Patch Set 5 : update gyp #

Total comments: 2

Patch Set 6 : +gn #

Patch Set 7 : gn and gyp changes #

Total comments: 6

Patch Set 8 : remove GrTexture #

Patch Set 9 : skbitmap -> skimage #

Patch Set 10 : now with proper mac headers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+624 lines, -3 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M build/all.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 1 2 3 4 5 2 chunks +16 lines, -1 line 0 comments Download
A gpu/skia_runner/BUILD.gn View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download
A + gpu/skia_runner/DEPS View 1 chunk +3 lines, -2 lines 0 comments Download
A gpu/skia_runner/in_process_graphics_system.h View 1 chunk +29 lines, -0 lines 0 comments Download
A gpu/skia_runner/in_process_graphics_system.cc View 1 2 1 chunk +150 lines, -0 lines 0 comments Download
A gpu/skia_runner/sk_picture_rasterizer.h View 1 2 3 4 5 6 7 8 1 chunk +40 lines, -0 lines 0 comments Download
A gpu/skia_runner/sk_picture_rasterizer.cc View 1 2 3 4 5 6 7 8 1 chunk +91 lines, -0 lines 0 comments Download
A gpu/skia_runner/skia_runner.cc View 1 2 3 4 5 6 7 8 9 1 chunk +225 lines, -0 lines 0 comments Download
A gpu/skia_runner/skia_runner.gyp View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (18 generated)
hendrikw
Hi hi, here's a small program that takes a bunch of skp files and spits ...
5 years, 6 months ago (2015-06-11 18:29:10 UTC) #6
piman
https://codereview.chromium.org/1149893010/diff/100001/gpu/skia_runner/in_process_graphics_system.cc File gpu/skia_runner/in_process_graphics_system.cc (right): https://codereview.chromium.org/1149893010/diff/100001/gpu/skia_runner/in_process_graphics_system.cc#newcode24 gpu/skia_runner/in_process_graphics_system.cc:24: NonDiscardableMemory(size_t size) : data_(size) {} nit: explicit. https://codereview.chromium.org/1149893010/diff/100001/gpu/skia_runner/in_process_graphics_system.cc#newcode30 gpu/skia_runner/in_process_graphics_system.cc:30: ...
5 years, 6 months ago (2015-06-12 01:05:30 UTC) #7
hendrikw
PTAL I tried moving the IsSet as you suggested, let me know if this is ...
5 years, 6 months ago (2015-06-12 18:57:49 UTC) #8
hendrikw
+thakis for all.gyp change.
5 years, 6 months ago (2015-06-12 18:58:17 UTC) #10
piman
lgtm https://codereview.chromium.org/1149893010/diff/120001/gpu/command_buffer/service/in_process_command_buffer.h File gpu/command_buffer/service/in_process_command_buffer.h (right): https://codereview.chromium.org/1149893010/diff/120001/gpu/command_buffer/service/in_process_command_buffer.h#newcode213 gpu/command_buffer/service/in_process_command_buffer.h:213: const scoped_refptr<Service>& service); nit: you can make this ...
5 years, 6 months ago (2015-06-12 19:19:38 UTC) #11
hendrikw
https://codereview.chromium.org/1149893010/diff/120001/gpu/command_buffer/service/in_process_command_buffer.h File gpu/command_buffer/service/in_process_command_buffer.h (right): https://codereview.chromium.org/1149893010/diff/120001/gpu/command_buffer/service/in_process_command_buffer.h#newcode213 gpu/command_buffer/service/in_process_command_buffer.h:213: const scoped_refptr<Service>& service); On 2015/06/12 19:19:37, piman (Very slow ...
5 years, 6 months ago (2015-06-12 22:54:22 UTC) #12
Nico
https://codereview.chromium.org/1149893010/diff/140001/gpu/skia_runner/skia_runner.gyp File gpu/skia_runner/skia_runner.gyp (right): https://codereview.chromium.org/1149893010/diff/140001/gpu/skia_runner/skia_runner.gyp#newcode6 gpu/skia_runner/skia_runner.gyp:6: 'variables': { Set chromium_code to 1 here (cs.chromium.org for ...
5 years, 6 months ago (2015-06-14 21:45:07 UTC) #13
hendrikw
PTAL https://codereview.chromium.org/1149893010/diff/140001/gpu/skia_runner/skia_runner.gyp File gpu/skia_runner/skia_runner.gyp (right): https://codereview.chromium.org/1149893010/diff/140001/gpu/skia_runner/skia_runner.gyp#newcode6 gpu/skia_runner/skia_runner.gyp:6: 'variables': { On 2015/06/14 21:45:07, Nico wrote: > ...
5 years, 6 months ago (2015-06-15 16:55:23 UTC) #14
Nico
gyp files look fine, but: https://codereview.chromium.org/1149893010/diff/160001/gpu/skia_runner/skia_runner.gyp File gpu/skia_runner/skia_runner.gyp (right): https://codereview.chromium.org/1149893010/diff/160001/gpu/skia_runner/skia_runner.gyp#newcode11 gpu/skia_runner/skia_runner.gyp:11: # GN version: //gpu:skia_runner ...
5 years, 6 months ago (2015-06-15 18:54:38 UTC) #15
hendrikw
https://codereview.chromium.org/1149893010/diff/160001/gpu/skia_runner/skia_runner.gyp File gpu/skia_runner/skia_runner.gyp (right): https://codereview.chromium.org/1149893010/diff/160001/gpu/skia_runner/skia_runner.gyp#newcode11 gpu/skia_runner/skia_runner.gyp:11: # GN version: //gpu:skia_runner On 2015/06/15 18:54:38, Nico wrote: ...
5 years, 6 months ago (2015-06-15 18:57:13 UTC) #16
hendrikw
Added a gn version of the build. +dpranke@ for root gn file.
5 years, 6 months ago (2015-06-15 23:02:55 UTC) #18
Dirk Pranke
lgtm
5 years, 6 months ago (2015-06-15 23:51:52 UTC) #19
Nico
gyp lgtm
5 years, 6 months ago (2015-06-16 19:42:20 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149893010/180001
5 years, 6 months ago (2015-06-16 19:44:11 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/71327) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 6 months ago (2015-06-16 19:56:26 UTC) #27
hendrikw
Hi, I had some failures with ios (running try job now) Nico, can you take ...
5 years, 6 months ago (2015-06-16 21:21:54 UTC) #29
Nico
all.gyp lgtm
5 years, 6 months ago (2015-06-16 21:24:34 UTC) #30
Dirk Pranke
lgtm. frankly, all of //BUILD.gn is !is_ios at this point, but this change is fine ...
5 years, 6 months ago (2015-06-16 22:16:36 UTC) #31
bsalomon
On 2015/06/16 21:21:54, hendrikw wrote: > Hi, I had some failures with ios (running try ...
5 years, 6 months ago (2015-06-16 22:32:32 UTC) #32
bsalomon
https://codereview.chromium.org/1149893010/diff/200001/gpu/skia_runner/sk_picture_rasterizer.cc File gpu/skia_runner/sk_picture_rasterizer.cc (right): https://codereview.chromium.org/1149893010/diff/200001/gpu/skia_runner/sk_picture_rasterizer.cc#newcode41 gpu/skia_runner/sk_picture_rasterizer.cc:41: skia::RefPtr<GrTexture> gr_texture(skia::AdoptRef( Can you use SkSurface::NewWrappedRenderTarget rather than going ...
5 years, 6 months ago (2015-06-16 22:35:35 UTC) #33
hendrikw
bsalomon@, PTAL, thanks! https://codereview.chromium.org/1149893010/diff/200001/gpu/skia_runner/sk_picture_rasterizer.cc File gpu/skia_runner/sk_picture_rasterizer.cc (right): https://codereview.chromium.org/1149893010/diff/200001/gpu/skia_runner/sk_picture_rasterizer.cc#newcode41 gpu/skia_runner/sk_picture_rasterizer.cc:41: skia::RefPtr<GrTexture> gr_texture(skia::AdoptRef( On 2015/06/16 22:35:35, bsalomon ...
5 years, 6 months ago (2015-06-17 01:22:09 UTC) #35
bsalomon
https://codereview.chromium.org/1149893010/diff/200001/gpu/skia_runner/sk_picture_rasterizer.cc File gpu/skia_runner/sk_picture_rasterizer.cc (right): https://codereview.chromium.org/1149893010/diff/200001/gpu/skia_runner/sk_picture_rasterizer.cc#newcode41 gpu/skia_runner/sk_picture_rasterizer.cc:41: skia::RefPtr<GrTexture> gr_texture(skia::AdoptRef( On 2015/06/17 01:22:09, hendrikw wrote: > On ...
5 years, 6 months ago (2015-06-17 14:58:18 UTC) #36
hendrikw
modernized! bsalomon@, PTAL, thanks!
5 years, 6 months ago (2015-06-17 20:22:58 UTC) #37
bsalomon
On 2015/06/17 20:22:58, hendrikw wrote: > modernized! > > bsalomon@, PTAL, thanks! lgtm!
5 years, 6 months ago (2015-06-17 20:27:11 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149893010/260001
5 years, 6 months ago (2015-06-17 20:34:11 UTC) #41
commit-bot: I haz the power
Committed patchset #9 (id:260001)
5 years, 6 months ago (2015-06-17 21:39:13 UTC) #42
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/6daedb499182a5b6b0bcd54004afb7ebb3c3443b Cr-Commit-Position: refs/heads/master@{#334928}
5 years, 6 months ago (2015-06-17 21:40:20 UTC) #43
hendrikw
A revert of this CL (patchset #9 id:260001) has been created in https://codereview.chromium.org/1183513006/ by hendrikw@chromium.org. ...
5 years, 6 months ago (2015-06-17 23:23:54 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149893010/280001
5 years, 6 months ago (2015-06-18 14:05:58 UTC) #47
commit-bot: I haz the power
Committed patchset #10 (id:280001)
5 years, 6 months ago (2015-06-18 15:09:11 UTC) #48
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/5c1da6de3bf4a9b3ebee5f3ea77f42ee2f8db4bb Cr-Commit-Position: refs/heads/master@{#335042}
5 years, 6 months ago (2015-06-18 15:10:11 UTC) #49
Nico
5 years, 6 months ago (2015-06-19 18:10:52 UTC) #50
Message was sent while issue was closed.
This makes the clang/win/gn bot fail to link:

http://build.chromium.org/p/chromium.fyi/builders/CrWinClang64%28dbg%29/build...

FAILED: C:/b/depot_tools/python276_bin/python.exe gyp-win-tool link-wrapper
environment.x64 False link.exe /nologo /OUT:skia_runner.exe
/PDB:skia_runner.exe.pdb @skia_runner.exe.rsp
skia_runner.in_process_graphics_system.obj : error LNK2019: unresolved external
symbol "__declspec(dllimport) public: __cdecl
gpu::gles2::ContextCreationAttribHelper::ContextCreationAttribHelper(void)"
(__imp_??0ContextCreationAttribHelper@gles2@gpu@@QEAA@XZ) referenced in function
"private: class scoped_ptr<class gpu::GLInProcessContext,struct
base::DefaultDeleter<class gpu::GLInProcessContext> > __cdecl
skia_runner::InProcessGraphicsSystem::CreateInProcessContext(void)const "
(?CreateInProcessContext@InProcessGraphicsSystem@skia_runner@@AEBA?AV?$scoped_ptr@VGLInProcessContext@gpu@@U?$DefaultDeleter@VGLInProcessContext@gpu@@@base@@@@XZ)

skia_runner.exe : fatal error LNK1120: 1 unresolved externals

I guess the .gn file is missing some dependency?

Powered by Google App Engine
This is Rietveld 408576698