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

Issue 1855273002: Update new Surface callsites (Closed)

Created:
4 years, 8 months ago by tomhudson
Modified:
4 years, 8 months ago
CC:
chromium-reviews, blink-reviews-platform-graphics_chromium.org, dshwang, dcheng, kinuko+watch, Stephen Chennney, rwlbuis, krit, drott+blinkwatch_chromium.org, blink-reviews-html_chromium.org, jam, Justin Novosad, dglazkov+blink, Rik, darin-cc_chromium.org, blink-reviews, jbroman, pdr+graphicswatchlist_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, ajuma+watch-canvas_chromium.org, f(malita), danakj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update new Surface callsites Replace deprecated SkSurface* NewFoo() calls with sk_sp<SkSurface> MakeFoo() calls, allowing us to stop defining SK_SUPPORT_LEGACY_NEW_SURFACE_API for Chrome. This helps us migrate from raw pointers to sk_sp<> smart pointers in Chrome. R=reed@chromium.org,fmalita@chromium.org BUG= CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/8be900724dbaa615308f734c6ef2263357f2a0ab Cr-Commit-Position: refs/heads/master@{#385498}

Patch Set 1 #

Patch Set 2 : Fix ozone compile #

Patch Set 3 : ripple effects #

Patch Set 4 : ozone drm unittests #

Patch Set 5 : rebase #

Patch Set 6 : #

Total comments: 5

Patch Set 7 : review #

Patch Set 8 : software_output_device was indirectly including skia::refptr, switch to sk_sp<> #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -111 lines) Patch
M cc/layers/heads_up_display_layer_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/heads_up_display_layer_impl.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M cc/layers/picture_image_layer_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/output/renderer_pixeltest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M cc/output/software_output_device.h View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download
M cc/output/software_output_device.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/output/software_renderer.cc View 1 chunk +1 line, -2 lines 0 comments Download
M cc/playback/display_item_list_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M cc/raster/tile_task_worker_pool.cc View 1 2 3 4 5 6 4 chunks +4 lines, -7 lines 0 comments Download
M cc/resources/resource_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/resource_provider.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M cc/tiles/tile_manager_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_blending.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_masks.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/compositor/software_output_device_mac.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/compositor/software_output_device_mac.mm View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/software_output_device_win.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/compositor/software_output_device_win.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/gpu/gpu_ipc_browsertests.cc View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M skia/config/SkUserConfig.h View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/ImageBitmap.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/DragImage.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/DragImageTest.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp View 1 2 3 4 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageLayerChromiumTest.cpp View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImagePattern.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/render_text_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M ui/ozone/demo/software_renderer.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/cast/surface_factory_cast.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_buffer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/drm_buffer.cc View 1 2 chunks +1 line, -4 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_console_buffer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/drm_console_buffer.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_window_unittest.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M ui/ozone/platform/drm/gpu/mock_drm_device.h View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M ui/ozone/platform/drm/gpu/mock_drm_device.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M ui/ozone/platform/headless/headless_surface_factory.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M ui/ozone/public/surface_ozone_canvas.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 55 (25 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1855273002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1855273002/1
4 years, 8 months ago (2016-04-04 15:39:59 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/116078) chromeos_daisy_chromium_compile_only_ng on ...
4 years, 8 months ago (2016-04-04 15:54:41 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1855273002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1855273002/20001
4 years, 8 months ago (2016-04-04 17:39:04 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/139045)
4 years, 8 months ago (2016-04-04 17:58:46 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1855273002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1855273002/40001
4 years, 8 months ago (2016-04-04 18:19:02 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/148879)
4 years, 8 months ago (2016-04-04 19:36:14 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1855273002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1855273002/60001
4 years, 8 months ago (2016-04-05 12:04:46 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/13996) ios_rel_device_ninja on ...
4 years, 8 months ago (2016-04-05 12:07:02 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1855273002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1855273002/80001
4 years, 8 months ago (2016-04-05 12:29:19 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/139667)
4 years, 8 months ago (2016-04-05 12:52:21 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1855273002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1855273002/100001
4 years, 8 months ago (2016-04-05 13:09:12 UTC) #23
tomhudson
Another legacy API we can stop supporting in Chrome.
4 years, 8 months ago (2016-04-05 13:55:34 UTC) #24
reed1
https://codereview.chromium.org/1855273002/diff/100001/cc/raster/tile_task_worker_pool.cc File cc/raster/tile_task_worker_pool.cc (right): https://codereview.chromium.org/1855273002/diff/100001/cc/raster/tile_task_worker_pool.cc#newcode130 cc/raster/tile_task_worker_pool.cc:130: surface->getCanvas()->readPixels(dst_info, memory, stride, 0, 0); nit: could change to ...
4 years, 8 months ago (2016-04-05 14:06:17 UTC) #26
reed1
lgtm
4 years, 8 months ago (2016-04-05 14:06:33 UTC) #27
f(malita)
LGTM Meta-nit: can you check whether we can remove skia/ext/refptr.h includes from the updated Chromium ...
4 years, 8 months ago (2016-04-05 14:31:52 UTC) #28
tomhudson
> Meta-nit: can you check whether we can remove skia/ext/refptr.h includes from > the updated ...
4 years, 8 months ago (2016-04-05 14:52:50 UTC) #30
f(malita)
https://codereview.chromium.org/1855273002/diff/100001/ui/ozone/platform/drm/gpu/drm_buffer.cc File ui/ozone/platform/drm/gpu/drm_buffer.cc (left): https://codereview.chromium.org/1855273002/diff/100001/ui/ozone/platform/drm/gpu/drm_buffer.cc#oldcode41 ui/ozone/platform/drm/gpu/drm_buffer.cc:41: surface_.clear(); On 2016/04/05 14:52:50, tomhudson wrote: > On 2016/04/05 ...
4 years, 8 months ago (2016-04-05 14:56:02 UTC) #31
tomhudson
danakj@: please review cc/, ui/gfx/ piman@: please review content/browser/gpu/ junov@: please review WebKit/Source/modules/ dnicoara@: please ...
4 years, 8 months ago (2016-04-05 14:58:15 UTC) #33
piman
lgtm
4 years, 8 months ago (2016-04-05 15:21:34 UTC) #35
danakj
LGTM
4 years, 8 months ago (2016-04-05 18:03:45 UTC) #36
dnicoara
ui/ozone/platform/drm lgtm
4 years, 8 months ago (2016-04-05 18:43:28 UTC) #37
rjkroege
ui/ozone lgtm
4 years, 8 months ago (2016-04-05 19:19:21 UTC) #38
haraken
WebKit LGTM
4 years, 8 months ago (2016-04-05 23:29:57 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1855273002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1855273002/120001
4 years, 8 months ago (2016-04-06 13:49:06 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/206460)
4 years, 8 months ago (2016-04-06 14:18:44 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1855273002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1855273002/140001
4 years, 8 months ago (2016-04-06 14:59:30 UTC) #46
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-06 16:14:07 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1855273002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1855273002/140001
4 years, 8 months ago (2016-04-06 17:34:44 UTC) #51
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 8 months ago (2016-04-06 17:42:43 UTC) #53
commit-bot: I haz the power
4 years, 8 months ago (2016-04-06 17:43:57 UTC) #55
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/8be900724dbaa615308f734c6ef2263357f2a0ab
Cr-Commit-Position: refs/heads/master@{#385498}

Powered by Google App Engine
This is Rietveld 408576698