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

Issue 2615493003: use SkSurface behind gfx::Canvas (Closed)

Created:
3 years, 11 months ago by reed1
Modified:
3 years, 11 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

use SkSurface behind gfx::Canvas Using PlatformCanvas (previously) always paid for the cost of the native graphics context (e.g. HDC or CGContext), but there are no callers of gfx::Canvas that use those facilities. BUG=675977 Review-Url: https://codereview.chromium.org/2615493003 Cr-Commit-Position: refs/heads/master@{#442034} Committed: https://chromium.googlesource.com/chromium/src/+/151280976aad5ebe2285cf1b446e98ea9635600c

Patch Set 1 #

Patch Set 2 : fix build #

Patch Set 3 : rebase #

Total comments: 8

Patch Set 4 : anon namespace #

Total comments: 2

Patch Set 5 : add ws #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -13 lines) Patch
M ui/gfx/canvas.h View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M ui/gfx/canvas.cc View 1 2 3 4 5 4 chunks +21 lines, -8 lines 0 comments Download

Messages

Total messages: 40 (26 generated)
reed1
3 years, 11 months ago (2017-01-04 15:40:47 UTC) #3
reed1
3 years, 11 months ago (2017-01-06 01:16:08 UTC) #16
sadrul
https://codereview.chromium.org/2615493003/diff/40001/ui/gfx/canvas.cc File ui/gfx/canvas.cc (left): https://codereview.chromium.org/2615493003/diff/40001/ui/gfx/canvas.cc#oldcode65 ui/gfx/canvas.cc:65: canvas_owner_ = skia::CreatePlatformCanvas(pixel_size.width(), Looks like these are the only ...
3 years, 11 months ago (2017-01-06 05:41:32 UTC) #18
f(malita)
non-owner LGTM, % sadrul's comments. https://codereview.chromium.org/2615493003/diff/40001/ui/gfx/canvas.h File ui/gfx/canvas.h (right): https://codereview.chromium.org/2615493003/diff/40001/ui/gfx/canvas.h#newcode17 ui/gfx/canvas.h:17: #include "third_party/skia/include/core/SkSurface.h" Can we ...
3 years, 11 months ago (2017-01-06 14:59:07 UTC) #19
reed1
https://codereview.chromium.org/2615493003/diff/40001/ui/gfx/canvas.cc File ui/gfx/canvas.cc (left): https://codereview.chromium.org/2615493003/diff/40001/ui/gfx/canvas.cc#oldcode65 ui/gfx/canvas.cc:65: canvas_owner_ = skia::CreatePlatformCanvas(pixel_size.width(), On 2017/01/06 05:41:32, sadrul wrote: > ...
3 years, 11 months ago (2017-01-06 16:00:38 UTC) #20
reed1
https://codereview.chromium.org/2615493003/diff/40001/ui/gfx/canvas.h File ui/gfx/canvas.h (right): https://codereview.chromium.org/2615493003/diff/40001/ui/gfx/canvas.h#newcode17 ui/gfx/canvas.h:17: #include "third_party/skia/include/core/SkSurface.h" On 2017/01/06 14:59:07, f(malita) wrote: > Can ...
3 years, 11 months ago (2017-01-06 16:01:20 UTC) #21
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2615493003/diff/60001/ui/gfx/canvas.cc File ui/gfx/canvas.cc (right): https://codereview.chromium.org/2615493003/diff/60001/ui/gfx/canvas.cc#newcode30 ui/gfx/canvas.cc:30: namespace { Nit: Add empty lines within the ...
3 years, 11 months ago (2017-01-06 16:02:51 UTC) #24
reed1
https://codereview.chromium.org/2615493003/diff/60001/ui/gfx/canvas.cc File ui/gfx/canvas.cc (right): https://codereview.chromium.org/2615493003/diff/60001/ui/gfx/canvas.cc#newcode30 ui/gfx/canvas.cc:30: namespace { On 2017/01/06 16:02:51, Alexei Svitkine (slow) wrote: ...
3 years, 11 months ago (2017-01-06 16:10:11 UTC) #25
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/2615493003/80001
3 years, 11 months ago (2017-01-06 16:10:38 UTC) #28
commit-bot: I haz the power
Failed to apply patch for ui/gfx/canvas.h: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-06 18:24:19 UTC) #30
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/2615493003/80001
3 years, 11 months ago (2017-01-06 18:29:23 UTC) #32
commit-bot: I haz the power
Failed to apply patch for ui/gfx/canvas.h: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-06 18:33:58 UTC) #34
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/2615493003/100001
3 years, 11 months ago (2017-01-06 18:42:49 UTC) #37
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 20:38:03 UTC) #40
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/151280976aad5ebe2285cf1b446e...

Powered by Google App Engine
This is Rietveld 408576698