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

Issue 2823003002: SkBitmap and SkPixelRef no longer need lock/unlock (Closed)

Created:
3 years, 8 months ago by reed1
Modified:
3 years, 8 months ago
CC:
chromium-reviews, erickung+watch_chromium.org, sadrul, yusukes+watch_chromium.org, blink-reviews-platform-graphics_chromium.org, chromoting-reviews_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, nasko+codewatch_chromium.org, dcheng, rsesek+watch_chromium.org, dougt+watch_chromium.org, dmazzoni+watch_chromium.org, apacible+watch_chromium.org, dshwang, kinuko+watch, Stephen Chennney, miu+watch_chromium.org, extensions-reviews_chromium.org, krit, drott+blinkwatch_chromium.org, Matt Giuca, aboxhall+watch_chromium.org, shuchen+watch_chromium.org, jam, Justin Novosad, jbauman+watch_chromium.org, nona+watch_chromium.org, je_julie, darin-cc_chromium.org, jochen+watch_chromium.org, devtools-reviews_chromium.org, blink-reviews, chromium-apps-reviews_chromium.org, xjz+watch_chromium.org, rwlbuis, ajuma+watch_chromium.org, mlamouri+watch-content_chromium.org, alemate+watch_chromium.org, creis+watch_chromium.org, derat+watch_chromium.org, tapted, Peter Beverloo, yuzo+watch_chromium.org, feature-media-reviews_chromium.org, pdr+graphicswatchlist_chromium.org, oshima+watch_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, sync-reviews_chromium.org, rjkroege, achuith+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, Rik, Ian Vollick, tfarina, nektar+watch_chromium.org, fmalita+watch_chromium.org, blink-layers+watch_chromium.org, pfeldman, dtseng+watch_chromium.org, cc-bugs_chromium.org, James Su, davemoore+watch_chromium.org, einbinder+watch-test-runner_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

SkBitmap and SkPixelRef no longer need lock/unlock Refactoring CL -- no intended behavior change. Just removing calls to empty apis. BUG=skia:6481 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2;master.tryserver.chromium.linux:linux_site_isolation refactoring CL TBR=jochen, hubbe, finnur, thestig, wez Review-Url: https://codereview.chromium.org/2823003002 Cr-Commit-Position: refs/heads/master@{#465770} Committed: https://chromium.googlesource.com/chromium/src/+/11395368450c1bff110eba0cafef112c2f0e8334

Patch Set 1 #

Patch Set 2 : fix android #

Patch Set 3 : fix mac #

Total comments: 2

Patch Set 4 : fix chromeos #

Patch Set 5 : rebase #

Total comments: 2

Patch Set 6 : remove empty and unused methods #

Patch Set 7 : add new OWNERS file #

Patch Set 8 : manual rebase #

Patch Set 9 : win fix after rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -510 lines) Patch
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -3 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M cc/output/renderer_pixeltest.cc View 7 chunks +28 lines, -50 lines 0 comments Download
M cc/resources/ui_resource_bitmap.h View 1 2 3 2 chunks +4 lines, -10 lines 0 comments Download
M cc/resources/ui_resource_bitmap.cc View 1 chunk +0 lines, -14 lines 0 comments Download
M cc/test/pixel_comparator.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/android/thumbnail/thumbnail_cache.cc View 10 chunks +0 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/accessibility/accessibility_highlight_manager_interactive_uitest.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/screenshot_testing/SkDiffPixelsMetric_cpu.cpp View 1 2 3 2 chunks +0 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/login/screenshot_testing/SkPMetric.cpp View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/users/avatar/user_image_manager_test_util.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_policy_browsertest.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/devtools/devtools_eye_dropper.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/bookmark_app_helper_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_action_storage_manager.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/media/webrtc/desktop_media_list_base.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/media/webrtc/native_desktop_media_list.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/media/webrtc/tab_desktop_media_list_unittest.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/media/webrtc/window_icon_util_mac.mm View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/media/webrtc/window_icon_util_x11.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/plugins/plugin_power_saver_browsertest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sync/test/integration/bookmarks_helper.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack_unittest.cc View 4 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/thumbnails/content_analysis.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/thumbnails/content_analysis_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/exclusive_access/flash_fullscreen_interactive_browsertest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/libgtkui/skia_utils_gtk.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/toolbar/back_forward_menu_model_unittest.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/web_applications/web_app_win.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/renderer/chrome_render_frame_observer.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/display_compositor/gl_helper_unittest.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M components/favicon_base/select_favicon_frames_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M components/history/core/browser/history_backend_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/suggestions/image_encoder.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/user_manager/user_image/user_image.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/wallpaper/wallpaper_manager_base.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/wallpaper/wallpaper_resizer_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/compositor/surface_utils.cc View 3 chunks +1 line, -7 lines 0 comments Download
M content/browser/devtools/devtools_frame_trace_recorder.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/devtools/protocol/devtools_protocol_browsertest.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/media/capture/cursor_renderer.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/clipboard_message_filter_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/delegated_frame_host.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 3 chunks +1 line, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -10 lines 0 comments Download
M content/common/cursors/webcursor_unittest.cc View 2 chunks +9 lines, -19 lines 0 comments Download
M content/renderer/media/pepper_to_video_track_adapter.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_graphics_2d_host.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_video_source_host.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/renderer_clipboard_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/browser/layout_test/blink_test_controller.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M content/shell/test_runner/pixel_dump.cc View 1 chunk +1 line, -3 lines 0 comments Download
M content/shell/test_runner/test_runner.cc View 1 chunk +1 line, -4 lines 0 comments Download
M content/shell/test_runner/test_runner_for_specific_view.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/test/image_decoder_test.cc View 4 chunks +0 lines, -4 lines 0 comments Download
M extensions/browser/api/web_contents_capture_client.cc View 1 chunk +0 lines, -1 line 0 comments Download
M media/blink/webmediaplayer_cast_android.cc View 1 chunk +4 lines, -7 lines 0 comments Download
M media/renderers/skcanvas_video_renderer_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M printing/emf_win.cc View 1 chunk +0 lines, -1 line 0 comments Download
M remoting/host/chromeos/skia_bitmap_desktop_frame.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M remoting/test/frame_generator_util.cc View 1 chunk +4 lines, -6 lines 0 comments Download
M services/ui/public/interfaces/cursor/cursor_struct_traits_unittest.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M skia/config/SkUserConfig.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M skia/ext/image_operations.cc View 1 chunk +0 lines, -1 line 0 comments Download
M skia/ext/image_operations_unittest.cc View 6 chunks +0 lines, -9 lines 0 comments Download
M skia/ext/platform_canvas_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M skia/public/interfaces/bitmap_skbitmap_struct_traits.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M skia/public/interfaces/bitmap_skbitmap_struct_traits.cc View 1 2 3 4 5 2 chunks +1 line, -17 lines 0 comments Download
M third_party/WebKit/Source/platform/DragImageTest.cpp View 2 chunks +11 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp View 3 chunks +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp View 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp View 1 2 3 4 5 6 7 2 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp View 2 chunks +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp View 1 2 3 4 5 6 7 2 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 4 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebImageTest.cpp View 2 chunks +0 lines, -3 lines 0 comments Download
M ui/base/clipboard/clipboard_android.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M ui/base/clipboard/clipboard_test_template.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/base/clipboard/clipboard_win.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M ui/base/dragdrop/os_exchange_data_provider_win.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -4 lines 0 comments Download
M ui/base/x/x11_util.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/compositor/layer_unittest.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M ui/gfx/android/java_bitmap.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/gfx/blit_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/gfx/canvas.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -9 lines 0 comments Download
M ui/gfx/codec/png_codec.h View 2 chunks +2 lines, -4 lines 0 comments Download
M ui/gfx/codec/png_codec.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/gfx/color_analysis.cc View 4 chunks +0 lines, -6 lines 0 comments Download
M ui/gfx/color_analysis_unittest.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M ui/gfx/color_utils.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/gfx/icon_util.cc View 4 chunks +0 lines, -4 lines 0 comments Download
M ui/gfx/image/image_unittest.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M ui/gfx/image/image_unittest_util.cc View 3 chunks +1 line, -6 lines 0 comments Download
M ui/gfx/image/image_util.cc View 2 chunks +0 lines, -3 lines 0 comments Download
A ui/gfx/ipc/skia/OWNERS View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/ipc/skia/gfx_skia_param_traits.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/gfx/skbitmap_operations.cc View 9 chunks +6 lines, -34 lines 0 comments Download
M ui/gfx/skbitmap_operations_unittest.cc View 16 chunks +0 lines, -36 lines 0 comments Download
M ui/gfx/skia_util.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ui/views/controls/image_view.cc View 1 chunk +1 line, -3 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 79 (52 generated)
reed1
3 years, 8 months ago (2017-04-17 18:36:42 UTC) #6
f(malita)
non-owner lgtm https://codereview.chromium.org/2823003002/diff/40001/cc/resources/ui_resource_bitmap.h File cc/resources/ui_resource_bitmap.h (right): https://codereview.chromium.org/2823003002/diff/40001/cc/resources/ui_resource_bitmap.h#newcode58 cc/resources/ui_resource_bitmap.h:58: return pixel_ref_ ? static_cast<const uint8_t*>(pixel_ref_->pixels()) nit: prev ...
3 years, 8 months ago (2017-04-17 19:31:36 UTC) #14
reed1
https://codereview.chromium.org/2823003002/diff/40001/cc/resources/ui_resource_bitmap.h File cc/resources/ui_resource_bitmap.h (right): https://codereview.chromium.org/2823003002/diff/40001/cc/resources/ui_resource_bitmap.h#newcode58 cc/resources/ui_resource_bitmap.h:58: return pixel_ref_ ? static_cast<const uint8_t*>(pixel_ref_->pixels()) On 2017/04/17 19:31:36, f(malita) ...
3 years, 8 months ago (2017-04-17 20:18:40 UTC) #15
reed1
adding security OWNERS
3 years, 8 months ago (2017-04-17 21:54:51 UTC) #25
dcheng
ipc lgtm with nits addressed (in the future though, please just pick one IPC reviewer) ...
3 years, 8 months ago (2017-04-17 22:03:10 UTC) #27
reed1
https://codereview.chromium.org/2823003002/diff/80001/skia/public/interfaces/bitmap_skbitmap_struct_traits.cc File skia/public/interfaces/bitmap_skbitmap_struct_traits.cc (right): https://codereview.chromium.org/2823003002/diff/80001/skia/public/interfaces/bitmap_skbitmap_struct_traits.cc#newcode202 skia/public/interfaces/bitmap_skbitmap_struct_traits.cc:202: void* StructTraits<skia::mojom::BitmapDataView, SkBitmap>::SetUpContext( On 2017/04/17 22:03:10, dcheng (OOO through ...
3 years, 8 months ago (2017-04-18 12:53:02 UTC) #28
reed1
owner for ui/gfx cc/
3 years, 8 months ago (2017-04-18 14:18:09 UTC) #34
danakj
LGTM
3 years, 8 months ago (2017-04-18 14:29:28 UTC) #35
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/2823003002/30106
3 years, 8 months ago (2017-04-18 15:14:50 UTC) #38
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/413850)
3 years, 8 months ago (2017-04-18 15:24:14 UTC) #40
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/2823003002/30106
3 years, 8 months ago (2017-04-18 15:53:20 UTC) #43
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/413886)
3 years, 8 months ago (2017-04-18 16:02:52 UTC) #45
reed1
security OWNER
3 years, 8 months ago (2017-04-18 16:06:02 UTC) #48
sky
LGTM
3 years, 8 months ago (2017-04-18 16:25:24 UTC) #49
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/2823003002/30106
3 years, 8 months ago (2017-04-18 17:25:18 UTC) #52
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/413973)
3 years, 8 months ago (2017-04-18 17:36:09 UTC) #54
reed1
need SECURITY_OWNER
3 years, 8 months ago (2017-04-19 01:28:21 UTC) #55
Robert Sesek
On 2017/04/19 01:28:21, reed1 wrote: > need SECURITY_OWNER dcheng@ qualifies. The presubmit is telling you ...
3 years, 8 months ago (2017-04-19 15:00:39 UTC) #56
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/2823003002/110001
3 years, 8 months ago (2017-04-19 17:58:02 UTC) #59
reed1
On 2017/04/19 15:00:39, Robert Sesek wrote: > On 2017/04/19 01:28:21, reed1 wrote: > > need ...
3 years, 8 months ago (2017-04-19 17:59:12 UTC) #60
commit-bot: I haz the power
Try jobs failed on following builders: android_cronet on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_cronet/builds/122748) android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 8 months ago (2017-04-19 18:03:23 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/2823003002/130001
3 years, 8 months ago (2017-04-19 18:18:10 UTC) #65
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/415398)
3 years, 8 months ago (2017-04-19 18:35:37 UTC) #67
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/2823003002/130001
3 years, 8 months ago (2017-04-19 18:44:55 UTC) #70
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/408845)
3 years, 8 months ago (2017-04-19 19:44:31 UTC) #72
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/2823003002/150001
3 years, 8 months ago (2017-04-19 20:08:48 UTC) #75
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 22:06:55 UTC) #79
Message was sent while issue was closed.
Committed patchset #9 (id:150001) as
https://chromium.googlesource.com/chromium/src/+/11395368450c1bff110eba0cafef...

Powered by Google App Engine
This is Rietveld 408576698