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

Issue 1497683002: Make platform/graphics to use USING_FAST_MALLOC. (Closed)

Created:
5 years ago by tasak
Modified:
5 years ago
CC:
chromium-reviews, krit, blink-layers+watch_chromium.org, pdr+graphicswatchlist_chromium.org, drott+blinkwatch_chromium.org, ajuma+watch-canvas_chromium.org, dshwang, jbroman, Justin Novosad, danakj, blink-reviews-platform-graphics_chromium.org, Rik, f(malita), piman+watch_chromium.org, blink-reviews, vmpstr+blinkwatch_chromium.org, Stephen Chennney, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make platform/graphics to use USING_FAST_MALLOC. BUG=562431 Committed: https://crrev.com/d3aa9b15149a53d2b4f72c0a9c6d7e71fdd615de Cr-Commit-Position: refs/heads/master@{#362950}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -50 lines) Patch
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CanvasMetrics.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Color.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositingReasons.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/ContiguousContainer.h View 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h View 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h View 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/FrameData.h View 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Gradient.h View 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContextState.h View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContextStateSaver.h View 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.h View 3 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayerFactory.h View 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Image.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBuffer.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageDecodingStore.h View 1 2 3 chunks +10 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.h View 1 4 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageOrientation.h View 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageSource.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/InterceptingCanvas.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/LoggingCanvas.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Path.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/PathTraversalState.h View 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/PathTraversalState.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Pattern.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.h View 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/StrokeData.h View 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/ThreadSafeDataTransport.h View 2 chunks +5 lines, -1 line 1 comment Download
M third_party/WebKit/Source/platform/graphics/filters/DistantLightSource.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FEBlend.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FEColorMatrix.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FEComponentTransfer.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FEComposite.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FEConvolveMatrix.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FEDiffuseLighting.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FEDisplacementMap.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FEDropShadow.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FEFlood.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FEGaussianBlur.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FEMerge.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FEMorphology.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FEOffset.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FESpecularLighting.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FETile.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FETurbulence.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/Filter.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FilterEffect.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FilterOperation.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/LightSource.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/PointLightSource.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/SourceAlpha.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/SourceGraphic.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/SpotLightSource.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h View 3 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.h View 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/SharedContextRateLimiter.h View 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h View 3 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp View 14 chunks +25 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/ClipPathRecorder.h View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/ClipRecorder.h View 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/CullRect.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h View 3 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DisplayItemCacheSkipper.h View 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.h View 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.h View 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintChunkProperties.h View 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintChunker.h View 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/ScopedPaintChunkProperties.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.h View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.h View 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.h View 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/skia/SkSizeHash.h View 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
tasak
PTAL?
5 years ago (2015-12-03 09:01:57 UTC) #2
haraken
LGTM
5 years ago (2015-12-03 10:30:08 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1497683002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1497683002/40001
5 years ago (2015-12-03 10:49:54 UTC) #5
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-03 10:57:00 UTC) #6
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/d3aa9b15149a53d2b4f72c0a9c6d7e71fdd615de Cr-Commit-Position: refs/heads/master@{#362950}
5 years ago (2015-12-03 10:58:01 UTC) #8
aleksandar.stojiljkovic
https://codereview.chromium.org/1497683002/diff/40001/third_party/WebKit/Source/platform/graphics/ThreadSafeDataTransport.h File third_party/WebKit/Source/platform/graphics/ThreadSafeDataTransport.h (right): https://codereview.chromium.org/1497683002/diff/40001/third_party/WebKit/Source/platform/graphics/ThreadSafeDataTransport.h#newcode49 third_party/WebKit/Source/platform/graphics/ThreadSafeDataTransport.h:49: DISALLOW_NEW(); tasak@, while rebasing this, hit the merge issue ...
5 years ago (2015-12-03 23:29:42 UTC) #10
haraken
On 2015/12/03 23:29:42, aleksandar.stojiljkovic wrote: > https://codereview.chromium.org/1497683002/diff/40001/third_party/WebKit/Source/platform/graphics/ThreadSafeDataTransport.h > File third_party/WebKit/Source/platform/graphics/ThreadSafeDataTransport.h > (right): > > https://codereview.chromium.org/1497683002/diff/40001/third_party/WebKit/Source/platform/graphics/ThreadSafeDataTransport.h#newcode49 ...
5 years ago (2015-12-03 23:33:17 UTC) #11
aleksandar.stojiljkovic
5 years ago (2015-12-04 12:13:46 UTC) #12
Message was sent while issue was closed.
On 2015/12/03 23:33:17, haraken wrote:
> On 2015/12/03 23:29:42, aleksandar.stojiljkovic wrote:
> >
>
https://codereview.chromium.org/1497683002/diff/40001/third_party/WebKit/Sour...
> > File third_party/WebKit/Source/platform/graphics/ThreadSafeDataTransport.h
> > (right):
> > 
> >
>
https://codereview.chromium.org/1497683002/diff/40001/third_party/WebKit/Sour...
> > third_party/WebKit/Source/platform/graphics/ThreadSafeDataTransport.h:49:
> > DISALLOW_NEW();
> > tasak@, while rebasing this, hit the merge issue with this.
> > Usage of this class changed, it is now like:
> > class PLATFORM_EXPORT ThreadSafeDataTransport final : public
> > ThreadSafeRefCounted<ThreadSafeDataTransport> {
> >     WTF_MAKE_NONCOPYABLE(ThreadSafeDataTransport);
> > 
> > https://codereview.chromium.org/1484853003/
> > 
> > Could you please comment if you're fine with removing DISALLOW_NEW from
> > ThreadSafeDataTransport?
> > Thanks.
> 
> You can remove DISALLOW_NEW and add USING_FAST_MALLOC.

@haraken, good morning.

Sorry if misusing this review for another issue - looks related:

This combination is causing memory leak (more info in the bot log):
class PLATFORM_EXPORT ThreadSafeDataTransport final : public
ThreadSafeRefCounted<ThreadSafeDataTransport> {
    WTF_MAKE_NONCOPYABLE(ThreadSafeDataTransport);
    USING_FAST_MALLOC(ThreadSafeDataTransport);

http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...

After I removed USING_FAST_MALLOC(ThreadSafeDataTransport), asan build seems
fine:

http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...

Also, noticed that USING_FAST_MALLOC is not on other places combined with
RefCounted or ThreadSafeRefCounted (a lot of those - maybe there are I just
wasn't able to see/grep them).

Powered by Google App Engine
This is Rietveld 408576698