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

Issue 1839113002: Limit manual control of platform painting (Closed)

Created:
4 years, 8 months ago by tomhudson
Modified:
4 years, 8 months ago
Reviewers:
danakj, f(malita)
CC:
chromium-reviews, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, 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

Limit manual control of platform painting Platform painting should be through skia::ScopedPlatformPaint. (Only one compositor callsite was calling Begin/End directly.) Remove skia::EndPlatformPaint() and all device-specific implementations, which were effectively noops. Remove skia::BeginPlatformPaint(), and make all device-specific impls protected. BUG=598695 R=fmalita@chromium.org TBR=danakj@chromium.org Committed: https://crrev.com/7b79fb0215d08827085fa40c6c1fa027628a3c95 Cr-Commit-Position: refs/heads/master@{#383820}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Review #

Total comments: 1

Patch Set 3 : Privatize #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -79 lines) Patch
M content/browser/compositor/software_output_device_win.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M skia/ext/bitmap_platform_device_cairo.h View 1 3 chunks +6 lines, -3 lines 0 comments Download
M skia/ext/bitmap_platform_device_skia.h View 1 2 chunks +6 lines, -2 lines 0 comments Download
M skia/ext/bitmap_platform_device_win.h View 1 4 chunks +10 lines, -12 lines 0 comments Download
M skia/ext/bitmap_platform_device_win.cc View 3 chunks +0 lines, -9 lines 0 comments Download
M skia/ext/platform_canvas.h View 1 1 chunk +5 lines, -16 lines 0 comments Download
M skia/ext/platform_canvas.cc View 1 2 chunks +7 lines, -14 lines 0 comments Download
M skia/ext/platform_device.h View 1 2 4 chunks +10 lines, -8 lines 0 comments Download
M skia/ext/platform_device_linux.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M skia/ext/platform_device_mac.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M skia/ext/platform_device_win.cc View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
tomhudson
Lots of friends; maybe there's a better fix. (Moving ScopedPlatformPaint to platform_device would clean up ...
4 years, 8 months ago (2016-03-29 16:03:25 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839113002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839113002/1
4 years, 8 months ago (2016-03-29 16:58:16 UTC) #3
f(malita)
Thanks for cleaning this up - looks good, just some nits. (I find it kind ...
4 years, 8 months ago (2016-03-29 17:31:08 UTC) #4
tomhudson
> (I find it kind of odd that none of the platform impls do meaningful ...
4 years, 8 months ago (2016-03-29 17:47:32 UTC) #5
f(malita)
Thanks, LGTM. https://codereview.chromium.org/1839113002/diff/20001/skia/ext/platform_device.h File skia/ext/platform_device.h (right): https://codereview.chromium.org/1839113002/diff/20001/skia/ext/platform_device.h#newcode86 skia/ext/platform_device.h:86: virtual PlatformSurface BeginPlatformPaint(); nit: now private
4 years, 8 months ago (2016-03-29 18:14:13 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839113002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839113002/40001
4 years, 8 months ago (2016-03-29 19:23:37 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-03-29 21:03:47 UTC) #10
commit-bot: I haz the power
4 years, 8 months ago (2016-03-29 21:05:13 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7b79fb0215d08827085fa40c6c1fa027628a3c95
Cr-Commit-Position: refs/heads/master@{#383820}

Powered by Google App Engine
This is Rietveld 408576698