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

Issue 16040002: Changing SkDeferredCanvas to use factories for creation (Closed)

Created:
7 years, 7 months ago by Justin Novosad
Modified:
7 years, 6 months ago
Reviewers:
reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Changing SkDeferredCanvas to use factories for creation The objective of this change is to remove all calls to SkCanvas::setDevice. The factory API is hidden behind a build flag in order to ease the roll into chromium. A side-effect of the factory pattern is that it will no longer be possible to allocate a SkDeferredCanvas on the stack. This changes nothing for chrome, but it impacts skia test programs. Committed: https://code.google.com/p/skia/source/detail?r=9298

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+305 lines, -167 lines) Patch
M bench/DeferredCanvasBench.cpp View 1 3 chunks +20 lines, -16 lines 0 comments Download
M bench/DeferredSurfaceCopyBench.cpp View 1 1 chunk +10 lines, -5 lines 0 comments Download
M bench/benchmain.cpp View 1 1 chunk +6 lines, -1 line 0 comments Download
M gm/gmmain.cpp View 1 2 chunks +13 lines, -5 lines 0 comments Download
M include/utils/SkDeferredCanvas.h View 1 3 chunks +26 lines, -3 lines 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 6 chunks +31 lines, -8 lines 0 comments Download
M tests/CanvasTest.cpp View 1 1 chunk +11 lines, -6 lines 0 comments Download
M tests/DeferredCanvasTest.cpp View 1 27 chunks +188 lines, -123 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Justin Novosad
PTAL
7 years, 7 months ago (2013-05-24 21:36:12 UTC) #1
reed1
https://codereview.chromium.org/16040002/diff/1/include/utils/SkDeferredCanvas.h File include/utils/SkDeferredCanvas.h (right): https://codereview.chromium.org/16040002/diff/1/include/utils/SkDeferredCanvas.h#newcode35 include/utils/SkDeferredCanvas.h:35: #if SK_DEFERRED_CANVAS_USES_FACTORIES Why do we need to ever hide ...
7 years, 6 months ago (2013-05-28 12:55:18 UTC) #2
Justin Novosad
https://codereview.chromium.org/16040002/diff/1/include/utils/SkDeferredCanvas.h File include/utils/SkDeferredCanvas.h (right): https://codereview.chromium.org/16040002/diff/1/include/utils/SkDeferredCanvas.h#newcode39 include/utils/SkDeferredCanvas.h:39: static SkDeferredCanvas* create(SkDevice* device); On 2013/05/28 12:55:18, reed1 wrote: ...
7 years, 6 months ago (2013-05-28 14:05:30 UTC) #3
reed1
Sure, exposing device only for SK_DEVELOPER sounds good... assuming chrome doesn't enable that :)
7 years, 6 months ago (2013-05-28 14:29:01 UTC) #4
Justin Novosad
New Patch
7 years, 6 months ago (2013-05-28 14:38:12 UTC) #5
reed1
lgtm
7 years, 6 months ago (2013-05-28 16:30:11 UTC) #6
Justin Novosad
7 years, 6 months ago (2013-05-28 17:39:15 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 manually as r9298 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698