New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 772413 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Oct 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Merge all blink modules/*canvas*

Project Member Reported by brat...@opera.com, Oct 6 2017

Issue description

A couple of blink modules have only 1 file each and jumbo will not help then. That goes for offscreencanvas and offscreencanvas2d for instance.

Why not merge all canvas modules and save ourselves some overhead?

 

Comment 1 by junov@chromium.org, Oct 16 2017

Owner: xlai@chromium.org
Status: Assigned (was: Untriaged)
modules that should be merged imho

canvas
canvas2d
offscreencanvas
offscreencanvas2d
imagebitmap

Also under core, we have imagebitmap and offscreencanvas directories that have very little in them, and their location in the directory tree is questionable.  These interface implementations really belong under core/html/canvas IMHO.

Comment 2 by brat...@opera.com, Oct 19 2017

Have you tried merging them or can I give it a shot? Or maybe it is not as easy as one might think.

Comment 3 by xlai@chromium.org, Oct 19 2017

bratell: I can do that; we're more familiar with the structures of these folders. How soon do you expect this to be done? Do you have a general guideline of Jumbo project that every refactoring work must follow?

Comment 4 by brat...@opera.com, Oct 19 2017

There is no deadline here. It was just something I could do while waiting for compilations.

I noticed the tiny modules when wondering why jumbo only made modules compile 4x faster when it made core compile 14x faster and noticing that it compiled single files instead of *jumbo* files. 

It's better if you do it, but I did a merge with git mv, rpl and git cl format which resulted in https://chromium-review.googlesource.com/c/chromium/src/+/728261

If you want to use it, feel free!

Comment 5 by xlai@chromium.org, Oct 19 2017

Thanks that's a good starting one. I'll see if I could use it.

Comment 6 by xlai@chromium.org, Oct 20 2017

bratell@: just wanna confirm with you. Does Jumbo compile on a per-module basis or per-directory basis? Does nesting the existing directories in deeper directory path work for Jumbo?

Comment 7 by brat...@opera.com, Oct 20 2017

It groups per target in gn files. If files are in the same |sources| list they will be grouped.
Project Member

Comment 8 by bugdroid1@chromium.org, Oct 23 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/85c12763181253aab7759f5e18ddf93f485ff304

commit 85c12763181253aab7759f5e18ddf93f485ff304
Author: xlai-o <xlai@chromium.org>
Date: Mon Oct 23 22:02:09 2017

Merge canvas*, offscreencanvas* and imagebitmap to one single module

Put the current separate modules under one single module "canvas" with five
subdirectories. Also OffscreenCanvasModules is renamed as OffscreenCanvasModule.

Bug:  772413 
Change-Id: Iebb5414e2dd6b6cb812cf1c1915f3067144de3a4
Reviewed-on: https://chromium-review.googlesource.com/733380
Commit-Queue: Olivia Lai <xlai@chromium.org>
Reviewed-by: Justin Novosad <junov@chromium.org>
Reviewed-by: Jeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#510933}
[modify] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/BUILD.gn
[modify] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/ModulesInitializer.cpp
[modify] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/BUILD.gn
[modify] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/OWNERS
[modify] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/README.md
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/BaseRenderingContext2D.cpp
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/BaseRenderingContext2D.h
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasGradient.cpp
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasGradient.h
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasGradient.idl
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasPath.cpp
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasPath.h
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasPath.idl
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasPattern.cpp
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasPattern.h
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasPattern.idl
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasRenderingContext2D.cpp
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasRenderingContext2D.h
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasRenderingContext2D.idl
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasRenderingContext2DAPITest.cpp
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasRenderingContext2DSettings.idl
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasRenderingContext2DState.cpp
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasRenderingContext2DState.h
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasRenderingContext2DTest.cpp
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasStyle.cpp
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/CanvasStyle.h
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/ClipList.cpp
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/ClipList.h
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/DEPS
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/HitRegion.cpp
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/HitRegion.h
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/HitRegionOptions.idl
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/Path2D.h
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/canvas2d/Path2D.idl
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/htmlcanvas/HTMLCanvasElementModule.cpp
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/htmlcanvas/HTMLCanvasElementModule.h
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/htmlcanvas/HTMLCanvasElementModule.idl
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/htmlcanvas/HTMLCanvasElementModuleTest.cpp
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/imagebitmap/ImageBitmapRenderingContext.cpp
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/imagebitmap/ImageBitmapRenderingContext.h
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/imagebitmap/ImageBitmapRenderingContext.idl
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/offscreencanvas/OffscreenCanvasModule.cpp
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/offscreencanvas/OffscreenCanvasModule.h
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/offscreencanvas/OffscreenCanvasModule.idl
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/offscreencanvas/OffscreenCanvasTest.cpp
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
[rename] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/canvas/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl
[delete] https://crrev.com/552a014401109b3ca3ee03f8b0c99d1de808ddb5/third_party/WebKit/Source/modules/canvas2d/BUILD.gn
[delete] https://crrev.com/552a014401109b3ca3ee03f8b0c99d1de808ddb5/third_party/WebKit/Source/modules/canvas2d/OWNERS
[delete] https://crrev.com/552a014401109b3ca3ee03f8b0c99d1de808ddb5/third_party/WebKit/Source/modules/canvas2d/README.md
[modify] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/csspaint/DEPS
[modify] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2D.h
[delete] https://crrev.com/552a014401109b3ca3ee03f8b0c99d1de808ddb5/third_party/WebKit/Source/modules/imagebitmap/BUILD.gn
[delete] https://crrev.com/552a014401109b3ca3ee03f8b0c99d1de808ddb5/third_party/WebKit/Source/modules/imagebitmap/OWNERS
[modify] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/modules_idl_files.gni
[delete] https://crrev.com/552a014401109b3ca3ee03f8b0c99d1de808ddb5/third_party/WebKit/Source/modules/offscreencanvas/BUILD.gn
[delete] https://crrev.com/552a014401109b3ca3ee03f8b0c99d1de808ddb5/third_party/WebKit/Source/modules/offscreencanvas/OWNERS
[delete] https://crrev.com/552a014401109b3ca3ee03f8b0c99d1de808ddb5/third_party/WebKit/Source/modules/offscreencanvas/README.md
[delete] https://crrev.com/552a014401109b3ca3ee03f8b0c99d1de808ddb5/third_party/WebKit/Source/modules/offscreencanvas2d/BUILD.gn
[delete] https://crrev.com/552a014401109b3ca3ee03f8b0c99d1de808ddb5/third_party/WebKit/Source/modules/offscreencanvas2d/OWNERS
[delete] https://crrev.com/552a014401109b3ca3ee03f8b0c99d1de808ddb5/third_party/WebKit/Source/modules/offscreencanvas2d/README.md
[modify] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.h
[modify] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/shapedetection/DEPS
[modify] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
[modify] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.h
[modify] https://crrev.com/85c12763181253aab7759f5e18ddf93f485ff304/third_party/WebKit/Source/modules/shapedetection/TextDetector.h

Comment 9 by xlai@chromium.org, Oct 24 2017

Status: Fixed (was: Assigned)

Sign in to add a comment