DescriptionRevert of Add the method isOpaque() to SkImage (patchset #6 of https://codereview.chromium.org/406673003/)
Reason for revert:
This breaks the ValGrind build http://108.170.220.120:10115/builders/Test-Ubuntu12-ShuttleA-GTX550Ti-x86_64-Release-Valgrind/builds/495/steps/RunDM/logs/stdio
which exposes this leak
[01:02:44.642455] ==12875==
[01:02:44.642530] ==12875== HEAP SUMMARY:
[01:02:45.643727] ==12875== in use at exit: 140,008,712 bytes in 13,313 blocks
[01:02:45.643846] ==12875== total heap usage: 38,479,491 allocs, 38,466,178 frees, 827,882,997,105 bytes allocated
[01:02:45.643903] ==12875==
[01:02:45.643951] ==12875== 340 (88 direct, 252 indirect) bytes in 1 blocks are definitely lost in loss record 788 of 2,001
[01:02:45.643999] ==12875== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
[01:02:45.644066] ==12875== by 0x637CCF: SkNewImageFromPixelRef(SkImageInfo const&, SkPixelRef*, unsigned long) (SkImage_Raster.cpp:218)
[01:02:45.644120] ==12875== by 0x6373B6: SkNewImageFromBitmap(SkBitmap const&, bool) (SkImagePriv.cpp:20)
[01:02:45.644167] ==12875== by 0x638132: SkSurface_Raster::onNewImageSnapshot() (SkSurface_Raster.cpp:116)
[01:02:45.644213] ==12875== by 0x637EEE: SkSurface::newImageSnapshot() (SkSurface_Base.h:91)
[01:02:45.644272] ==12875== by 0x4B1AFC: skiatest::ImageIsOpaqueTestClass::onRun(skiatest::Reporter*) (ImageIsOpaqueTest.cpp:20)
[01:02:45.644319] ==12875== by 0x4184E0: skiatest::Test::run() (Test.cpp:107)
[01:02:45.644364] ==12875== by 0x40CD3F: DM::CpuTestTask::draw() (DMTestTask.cpp:42)
[01:02:45.644422] ==12875== by 0x40C217: DM::CpuTask::run() (DMTask.cpp:51)
[01:02:45.644467] ==12875== by 0x40AEF4: SkTThreadPool<void>::Loop(void*) (SkThreadPool.h:116)
[01:02:45.644514] ==12875== by 0x73C87A: thread_start(void*) (SkThreadUtils_pthread.cpp:66)
[01:02:45.644559] ==12875== by 0x5693E99: start_thread (pthread_create.c:308)
[01:02:45.644605] ==12875== by 0x6D3FCBC: clone (clone.S:112)
[01:02:45.644651] ==12875==
[01:02:45.644695] {
[01:02:45.644739] <insert_a_suppression_name_here>
[01:02:45.644784] Memcheck:Leak
[01:02:45.644828] fun:_Znwm
[01:02:45.644874] fun:_Z22SkNewImageFromPixelRefRK11SkImageInfoP10SkPixelRefm
[01:02:45.644918] fun:_Z20SkNewImageFromBitmapRK8SkBitmapb
[01:02:45.644962] fun:_ZN16SkSurface_Raster18onNewImageSnapshotEv
[01:02:45.645009] fun:_ZN9SkSurface16newImageSnapshotEv
[01:02:45.645054] fun:_ZN8skiatest22ImageIsOpaqueTestClass5onRunEPNS_8ReporterE
[01:02:45.645099] fun:_ZN8skiatest4Test3runEv
[01:02:45.645144] fun:_ZN2DM11CpuTestTask4drawEv
[01:02:45.645188] fun:_ZN2DM7CpuTask3runEv
[01:02:45.645232] fun:_ZN13SkTThreadPoolIvE4LoopEPv
[01:02:45.645297] fun:_ZL12thread_startPv
[01:02:45.645345] fun:start_thread
[01:02:45.645394] fun:clone
[01:02:45.645439] }
[01:02:45.645498] ==12875== 340 (88 direct, 252 indirect) bytes in 1 blocks are definitely lost in loss record 789 of 2,001
[01:02:45.645544] ==12875== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
[01:02:45.645590] ==12875== by 0x637CCF: SkNewImageFromPixelRef(SkImageInfo const&, SkPixelRef*, unsigned long) (SkImage_Raster.cpp:218)
[01:02:45.645636] ==12875== by 0x6373B6: SkNewImageFromBitmap(SkBitmap const&, bool) (SkImagePriv.cpp:20)
[01:02:45.645681] ==12875== by 0x638132: SkSurface_Raster::onNewImageSnapshot() (SkSurface_Raster.cpp:116)
[01:02:45.645727] ==12875== by 0x637EEE: SkSurface::newImageSnapshot() (SkSurface_Base.h:91)
[01:02:45.645771] ==12875== by 0x4B1B83: skiatest::ImageIsOpaqueTestClass::onRun(skiatest::Reporter*) (ImageIsOpaqueTest.cpp:24)
[01:02:45.645829] ==12875== by 0x4184E0: skiatest::Test::run() (Test.cpp:107)
[01:02:45.645873] ==12875== by 0x40CD3F: DM::CpuTestTask::draw() (DMTestTask.cpp:42)
[01:02:45.645927] ==12875== by 0x40C217: DM::CpuTask::run() (DMTask.cpp:51)
[01:02:45.645972] ==12875== by 0x40AEF4: SkTThreadPool<void>::Loop(void*) (SkThreadPool.h:116)
[01:02:45.646026] ==12875== by 0x73C87A: thread_start(void*) (SkThreadUtils_pthread.cpp:66)
[01:02:45.646071] ==12875== by 0x5693E99: start_thread (pthread_create.c:308)
[01:02:45.646124] ==12875== by 0x6D3FCBC: clone (clone.S:112)
[01:02:45.646169] ==12875==
[01:02:45.646214] {
[01:02:45.646258] <insert_a_suppression_name_here>
[01:02:45.646313] Memcheck:Leak
[01:02:45.646362] fun:_Znwm
[01:02:45.646407] fun:_Z22SkNewImageFromPixelRefRK11SkImageInfoP10SkPixelRefm
[01:02:45.646452] fun:_Z20SkNewImageFromBitmapRK8SkBitmapb
[01:02:45.646498] fun:_ZN16SkSurface_Raster18onNewImageSnapshotEv
[01:02:45.646544] fun:_ZN9SkSurface16newImageSnapshotEv
[01:02:45.646589] fun:_ZN8skiatest22ImageIsOpaqueTestClass5onRunEPNS_8ReporterE
[01:02:45.646635] fun:_ZN8skiatest4Test3runEv
[01:02:45.646680] fun:_ZN2DM11CpuTestTask4drawEv
[01:02:45.646725] fun:_ZN2DM7CpuTask3runEv
[01:02:45.646770] fun:_ZN13SkTThreadPoolIvE4LoopEPv
[01:02:45.646815] fun:_ZL12thread_startPv
[01:02:45.646860] fun:start_thread
[01:02:45.646904] fun:clone
[01:02:45.646951] }
[01:02:45.646995] ==12875== 1,168 (176 direct, 992 indirect) bytes in 2 blocks are definitely lost in loss record 834 of 2,001
[01:02:45.647046] ==12875== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
[01:02:45.647092] ==12875== by 0x7D975D: SkImage::NewTexture(SkBitmap const&) (SkImage_Gpu.cpp:89)
[01:02:45.647140] ==12875== by 0x7C5C3B: SkSurface_Gpu::onNewImageSnapshot() (SkSurface_Gpu.cpp:66)
[01:02:45.647189] ==12875== by 0x637EEE: SkSurface::newImageSnapshot() (SkSurface_Base.h:91)
[01:02:45.647234] ==12875== by 0x4B1F96: skiatest::ImageIsOpaqueTest_GPUClass::onRun(skiatest::Reporter*) (ImageIsOpaqueTest.cpp:45)
[01:02:45.647283] ==12875== by 0x4184E0: skiatest::Test::run() (Test.cpp:107)
[01:02:45.647328] ==12875== by 0x40CD09: DM::GpuTestTask::draw(GrContextFactory*) (DMTestTask.cpp:51)
[01:02:45.647373] ==12875== by 0x40C27B: DM::GpuTask::run(GrContextFactory&) (DMTask.cpp:69)
[01:02:45.647420] ==12875== by 0x40C909: SkTThreadPool<GrContextFactory>::Loop(void*) (SkThreadPool.h:110)
[01:02:45.647467] ==12875== by 0x73C87A: thread_start(void*) (SkThreadUtils_pthread.cpp:66)
[01:02:45.647515] ==12875== by 0x5693E99: start_thread (pthread_create.c:308)
[01:02:45.647560] ==12875== by 0x6D3FCBC: clone (clone.S:112)
[01:02:45.647608] ==12875==
[01:02:45.647654] {
[01:02:45.647700] <insert_a_suppression_name_here>
[01:02:45.647745] Memcheck:Leak
[01:02:45.647789] fun:_Znwm
[01:02:45.647835] fun:_ZN7SkImage10NewTextureERK8SkBitmap
[01:02:45.647880] fun:_ZN13SkSurface_Gpu18onNewImageSnapshotEv
[01:02:45.647924] fun:_ZN9SkSurface16newImageSnapshotEv
[01:02:45.647971] fun:_ZN8skiatest26ImageIsOpaqueTest_GPUClass5onRunEPNS_8ReporterE
[01:02:45.648015] fun:_ZN8skiatest4Test3runEv
[01:02:45.648059] fun:_ZN2DM11GpuTestTask4drawEP16GrContextFactory
[01:02:45.648108] fun:_ZN2DM7GpuTask3runER16GrContextFactory
[01:02:45.648154] fun:_ZN13SkTThreadPoolI16GrContextFactoryE4LoopEPv
[01:02:45.648200] fun:_ZL12thread_startPv
[01:02:45.648245] fun:start_thread
[01:02:45.648290] fun:clone
[01:02:45.648338] }
[01:02:45.648383] ==12875== 1,168 (176 direct, 992 indirect) bytes in 2 blocks are definitely lost in loss record 835 of 2,001
[01:02:45.648432] ==12875== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
[01:02:45.648478] ==12875== by 0x7D975D: SkImage::NewTexture(SkBitmap const&) (SkImage_Gpu.cpp:89)
[01:02:45.648525] ==12875== by 0x7C5C3B: SkSurface_Gpu::onNewImageSnapshot() (SkSurface_Gpu.cpp:66)
[01:02:45.648574] ==12875== by 0x637EEE: SkSurface::newImageSnapshot() (SkSurface_Base.h:91)
[01:02:45.648620] ==12875== by 0x4B2030: skiatest::ImageIsOpaqueTest_GPUClass::onRun(skiatest::Reporter*) (ImageIsOpaqueTest.cpp:49)
[01:02:45.648668] ==12875== by 0x4184E0: skiatest::Test::run() (Test.cpp:107)
[01:02:45.648713] ==12875== by 0x40CD09: DM::GpuTestTask::draw(GrContextFactory*) (DMTestTask.cpp:51)
[01:02:45.648762] ==12875== by 0x40C27B: DM::GpuTask::run(GrContextFactory&) (DMTask.cpp:69)
[01:02:45.648807] ==12875== by 0x40C909: SkTThreadPool<GrContextFactory>::Loop(void*) (SkThreadPool.h:110)
[01:02:45.648852] ==12875== by 0x73C87A: thread_start(void*) (SkThreadUtils_pthread.cpp:66)
[01:02:45.648900] ==12875== by 0x5693E99: start_thread (pthread_create.c:308)
[01:02:45.648946] ==12875== by 0x6D3FCBC: clone (clone.S:112)
[01:02:45.648994] ==12875==
[01:02:45.649039] {
[01:02:45.649085] <insert_a_suppression_name_here>
[01:02:45.649130] Memcheck:Leak
[01:02:45.649174] fun:_Znwm
[01:02:45.649222] fun:_ZN7SkImage10NewTextureERK8SkBitmap
[01:02:45.649267] fun:_ZN13SkSurface_Gpu18onNewImageSnapshotEv
[01:02:45.649322] fun:_ZN9SkSurface16newImageSnapshotEv
[01:02:45.649367] fun:_ZN8skiatest26ImageIsOpaqueTest_GPUClass5onRunEPNS_8ReporterE
[01:02:45.649412] fun:_ZN8skiatest4Test3runEv
[01:02:45.649460] fun:_ZN2DM11GpuTestTask4drawEP16GrContextFactory
[01:02:45.649506] fun:_ZN2DM7GpuTask3runER16GrContextFactory
[01:02:45.649554] fun:_ZN13SkTThreadPoolI16GrContextFactoryE4LoopEPv
[01:02:45.649599] fun:_ZL12thread_startPv
[01:02:45.649645] fun:start_thread
[01:02:45.649690] fun:clone
[01:02:45.649738] }
[01:02:45.649783] ==12875== LEAK SUMMARY:
[01:02:45.649830] ==12875== definitely lost: 528 bytes in 6 blocks
[01:02:45.649875] ==12875== indirectly lost: 2,712 bytes in 23 blocks
[01:02:45.649923] ==12875== possibly lost: 0 bytes in 0 blocks
[01:02:45.649968] ==12875== still reachable: 136,805,456 bytes in 12,002 blocks
[01:02:45.650017] ==12875== suppressed: 3,200,016 bytes in 1,282 blocks
[01:02:45.650062] ==12875== Reachable blocks (those to which a pointer was found) are not shown.
[01:02:45.650109] ==12875== To see them, rerun with: --leak-check=full --show-reachable=yes
[01:02:45.650154] ==12875==
[01:02:45.650199] ==12875== For counts of detected and suppressed errors, rerun with: -v
[01:02:45.650247] ==12875== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 44878 from 660)
Original issue's description:
> Add the method isOpaque() to SkImage
>
> BUG=skia:2766
>
> Committed: https://skia.googlesource.com/skia/+/d2a3522503ca0c39829f1bb41f01201d1affdaf6
Patch Set 1 #
Created: 6 years, 4 months ago
(Patch set is too large to download)
Messages
Total messages: 6 (0 generated)
|