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

Issue 2476113002: Change call-sites now that SkCanvas is not ref-counted (Closed)

Created:
4 years, 1 month ago by reed1
Modified:
4 years, 1 month ago
CC:
anandc+watch-blimp_chromium.org, bgoldman+watch-blimp_chromium.org, cc-bugs_chromium.org, chromium-reviews, dtrainor+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, scf+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, steimel+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change call-sites now that SkCanvas is not ref-counted BUG=skia:5971 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel TBR=dtrainor@chromium.org Committed: https://crrev.com/60c148ef13aed978fcaf5dae9e242f99618f2164 Cr-Commit-Position: refs/heads/master@{#432481}

Patch Set 1 #

Patch Set 2 : change call-sites now that SkCanvas is not ref-counted #

Patch Set 3 : change call-sites now that SkCanvas is not ref-counted #

Patch Set 4 : update mac/android #

Patch Set 5 : fix mac/win #

Patch Set 6 : no need for unique check on unique_ptr #

Total comments: 32

Patch Set 7 : address comments from #6 #

Total comments: 4

Patch Set 8 : try newer comment on PaintRecorder class #

Patch Set 9 : include <memory> for windows #

Patch Set 10 : try fixing win again #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -199 lines) Patch
M android_webview/native/java_browser_view_renderer_helper.cc View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M blimp/test/support/compositor/picture_cache_test_support.cc View 1 chunk +1 line, -2 lines 0 comments Download
M cc/blimp/compositor_state_deserializer_unittest.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M cc/blimp/picture_data_conversions_unittest.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M cc/output/software_renderer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/output/software_renderer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/playback/discardable_image_map.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M cc/playback/discardable_image_map.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M cc/playback/display_item_list_unittest.cc View 1 2 3 4 5 6 14 chunks +17 lines, -28 lines 0 comments Download
M cc/raster/gpu_raster_buffer_provider.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M cc/test/fake_content_layer_client.cc View 1 2 3 4 5 6 3 chunks +4 lines, -5 lines 0 comments Download
M cc/test/solid_color_content_layer_client.cc View 1 chunk +1 line, -2 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_masks.cc View 1 3 chunks +6 lines, -6 lines 2 comments Download
M cc/trees/layer_tree_host_pixeltest_tiles.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/android/compositor/layer/crushed_sprite_layer.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/compositor/layer/crushed_sprite_layer.cc View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M components/test_runner/pixel_dump.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/compositor/software_output_device_mac.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/software_output_device_mac.mm View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/compositor/software_output_device_win.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/software_output_device_win.cc View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/pepper/ppb_image_data_impl.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/pepper/ppb_image_data_impl.cc View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_image_data_proxy.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppb_image_data_proxy.cc View 1 2 3 4 5 6 1 chunk +2 lines, -4 lines 0 comments Download
M skia/config/SkUserConfig.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M skia/ext/analysis_canvas_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M skia/ext/bitmap_platform_device_cairo.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download
M skia/ext/bitmap_platform_device_mac.cc View 1 1 chunk +10 lines, -4 lines 0 comments Download
M skia/ext/bitmap_platform_device_mac_unittest.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M skia/ext/bitmap_platform_device_skia.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download
M skia/ext/bitmap_platform_device_win.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M skia/ext/platform_canvas.h View 1 1 chunk +46 lines, -42 lines 0 comments Download
M skia/ext/platform_canvas.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M skia/ext/platform_canvas_unittest.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M skia/ext/skia_utils_mac.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/paint_recorder.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -5 lines 0 comments Download
M ui/gfx/blit_unittest.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M ui/gfx/canvas.h View 1 2 3 4 5 6 3 chunks +10 lines, -3 lines 0 comments Download
M ui/gfx/canvas.cc View 1 2 3 4 5 6 3 chunks +12 lines, -9 lines 0 comments Download
M ui/gfx/render_text_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/surface/transport_dib.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M ui/surface/transport_dib_posix.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M ui/surface/transport_dib_win.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -3 lines 0 comments Download
M ui/views/border_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 74 (49 generated)
reed1
4 years, 1 month ago (2016-11-10 18:08:07 UTC) #5
reed1
need OWNERS
4 years, 1 month ago (2016-11-14 17:19:28 UTC) #24
Khushal
On 2016/11/14 17:19:28, reed1 wrote: > need OWNERS blimp LGTM.
4 years, 1 month ago (2016-11-14 17:25:09 UTC) #25
f(malita)
lgtm https://codereview.chromium.org/2476113002/diff/100001/content/renderer/pepper/pepper_plugin_instance_impl.h File content/renderer/pepper/pepper_plugin_instance_impl.h (right): https://codereview.chromium.org/2476113002/diff/100001/content/renderer/pepper/pepper_plugin_instance_impl.h#newcode840 content/renderer/pepper/pepper_plugin_instance_impl.h:840: blink::WebCanvas* canvas_; This changes the ownership model. Are ...
4 years, 1 month ago (2016-11-14 17:29:15 UTC) #26
ccameron
ui/, *mac*, content/browser/compositor lgtm
4 years, 1 month ago (2016-11-14 17:44:18 UTC) #27
danakj
LGTM w/ a few comments https://codereview.chromium.org/2476113002/diff/100001/cc/playback/display_item_list_unittest.cc File cc/playback/display_item_list_unittest.cc (right): https://codereview.chromium.org/2476113002/diff/100001/cc/playback/display_item_list_unittest.cc#newcode57 cc/playback/display_item_list_unittest.cc:57: canvas = recorder.beginRecording(bounds.width(), bounds.height()); ...
4 years, 1 month ago (2016-11-14 19:35:15 UTC) #30
danakj
One more https://codereview.chromium.org/2476113002/diff/100001/ui/compositor/paint_recorder.cc File ui/compositor/paint_recorder.cc (right): https://codereview.chromium.org/2476113002/diff/100001/ui/compositor/paint_recorder.cc#newcode22 ui/compositor/paint_recorder.cc:22: // the recorder_ so no need to ...
4 years, 1 month ago (2016-11-14 19:36:51 UTC) #31
reed1
https://codereview.chromium.org/2476113002/diff/100001/cc/playback/display_item_list_unittest.cc File cc/playback/display_item_list_unittest.cc (right): https://codereview.chromium.org/2476113002/diff/100001/cc/playback/display_item_list_unittest.cc#newcode57 cc/playback/display_item_list_unittest.cc:57: canvas = recorder.beginRecording(bounds.width(), bounds.height()); On 2016/11/14 19:35:15, danakj wrote: ...
4 years, 1 month ago (2016-11-14 20:50:08 UTC) #32
danakj
Thanks! LGTM w/ a followup on the comment change https://codereview.chromium.org/2476113002/diff/120001/ui/compositor/paint_recorder.cc File ui/compositor/paint_recorder.cc (right): https://codereview.chromium.org/2476113002/diff/120001/ui/compositor/paint_recorder.cc#newcode22 ui/compositor/paint_recorder.cc:22: ...
4 years, 1 month ago (2016-11-14 20:59:56 UTC) #35
reed1
https://codereview.chromium.org/2476113002/diff/120001/ui/compositor/paint_recorder.cc File ui/compositor/paint_recorder.cc (right): https://codereview.chromium.org/2476113002/diff/120001/ui/compositor/paint_recorder.cc#newcode22 ui/compositor/paint_recorder.cc:22: // recorder_ On 2016/11/14 20:59:56, danakj wrote: > fix ...
4 years, 1 month ago (2016-11-14 21:28:51 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2476113002/180001
4 years, 1 month ago (2016-11-15 16:56:28 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/304469)
4 years, 1 month ago (2016-11-15 17:15:29 UTC) #52
reed1
need more OWNERS android_webview/native/ chrome/browser/android/compositor/layer/ components/test_runner/ content/renderer/pepper/ ppapi/proxy/
4 years, 1 month ago (2016-11-15 18:42:49 UTC) #54
raymes
ppapi lgtm
4 years, 1 month ago (2016-11-15 21:40:49 UTC) #55
esprehn
https://codereview.chromium.org/2476113002/diff/180001/cc/trees/layer_tree_host_pixeltest_masks.cc File cc/trees/layer_tree_host_pixeltest_masks.cc (right): https://codereview.chromium.org/2476113002/diff/180001/cc/trees/layer_tree_host_pixeltest_masks.cc#newcode43 cc/trees/layer_tree_host_pixeltest_masks.cc:43: SkCanvas* canvas = What frees the canvas now?
4 years, 1 month ago (2016-11-15 22:22:22 UTC) #58
Tobias Sargeant
android_webview/ LGTM
4 years, 1 month ago (2016-11-15 22:52:48 UTC) #59
reed1
https://codereview.chromium.org/2476113002/diff/180001/cc/trees/layer_tree_host_pixeltest_masks.cc File cc/trees/layer_tree_host_pixeltest_masks.cc (right): https://codereview.chromium.org/2476113002/diff/180001/cc/trees/layer_tree_host_pixeltest_masks.cc#newcode43 cc/trees/layer_tree_host_pixeltest_masks.cc:43: SkCanvas* canvas = On 2016/11/15 22:22:21, esprehn wrote: > ...
4 years, 1 month ago (2016-11-16 03:51:21 UTC) #60
esprehn
lgtm
4 years, 1 month ago (2016-11-16 04:07:46 UTC) #61
blundell
//components/test_runner lgtm
4 years, 1 month ago (2016-11-16 10:15:27 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2476113002/180001
4 years, 1 month ago (2016-11-16 13:48:37 UTC) #64
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/305558)
4 years, 1 month ago (2016-11-16 13:59:28 UTC) #66
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2476113002/180001
4 years, 1 month ago (2016-11-16 14:36:17 UTC) #69
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 1 month ago (2016-11-16 14:47:16 UTC) #71
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/60c148ef13aed978fcaf5dae9e242f99618f2164 Cr-Commit-Position: refs/heads/master@{#432481}
4 years, 1 month ago (2016-11-16 14:49:28 UTC) #73
reed1
4 years, 1 month ago (2016-11-17 14:47:57 UTC) #74
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:180001) has been created in
https://codereview.chromium.org/2515433002/ by reed@google.com.

The reason for reverting is: Believe this caused a crash 

https://bugs.chromium.org/p/chromium/issues/detail?id=666154.

Powered by Google App Engine
This is Rietveld 408576698