Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2066)

Issue 2103045: Refactor SkCanvas so that backends don't need to override it. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 2 months ago by Steve VanDeBogart
Modified:
14 years ago
Reviewers:
reed, James Hawkins
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Refactor SkCanvas so that backends don't need to override it. Methods or classes that should go away are marked deprecated. The only thing I know of that breaks backward compatibility is SkCanvas((SkDevice*)NULL), but that is fairly unlikely to occur in the wild because that constructor had a default value of NULL. Committed: http://code.google.com/p/skia/source/detail?r=604

Patch Set 1 #

Total comments: 19

Patch Set 2 : Address comments and make GL code compile - seems to work #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -278 lines) Patch
M include/core/SkCanvas.h View 1 4 chunks +29 lines, -18 lines 0 comments Download
M include/core/SkDevice.h View 1 1 chunk +34 lines, -8 lines 0 comments Download
M include/utils/SkGLCanvas.h View 1 1 chunk +21 lines, -48 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 5 chunks +33 lines, -16 lines 0 comments Download
M src/core/SkDevice.cpp View 1 1 chunk +12 lines, -0 lines 0 comments Download
D src/gl/SkGLCanvas.cpp View 1 chunk +0 lines, -180 lines 0 comments Download
M src/gl/SkGLDevice.h View 1 3 chunks +38 lines, -0 lines 0 comments Download
M src/gl/SkGLDevice.cpp View 1 3 chunks +140 lines, -0 lines 0 comments Download
M xcode/sampleapp/SampleApp.xcodeproj/project.pbxproj View 8 chunks +0 lines, -8 lines 0 comments Download

Messages

Total messages: 5
Steve VanDeBogart
Let me know what you think.
14 years, 2 months ago (2010-09-08 21:26:44 UTC) #1
reed
http://codereview.appspot.com/2103045/diff/1/include/core/SkCanvas.h File include/core/SkCanvas.h (right): http://codereview.appspot.com/2103045/diff/1/include/core/SkCanvas.h#newcode54 include/core/SkCanvas.h:54: public: Perhaps we just add another blank constructor SkCanvas() ...
14 years, 2 months ago (2010-09-09 16:25:57 UTC) #2
James Hawkins
http://codereview.appspot.com/2103045/diff/1/include/core/SkCanvas.h File include/core/SkCanvas.h (right): http://codereview.appspot.com/2103045/diff/1/include/core/SkCanvas.h#newcode101 include/core/SkCanvas.h:101: /** Depreceated - Specify a bitmap for the canvas ...
14 years, 2 months ago (2010-09-10 19:44:07 UTC) #3
Steve VanDeBogart
http://codereview.appspot.com/2103045/diff/1/include/core/SkCanvas.h File include/core/SkCanvas.h (right): http://codereview.appspot.com/2103045/diff/1/include/core/SkCanvas.h#newcode54 include/core/SkCanvas.h:54: public: On 2010/09/09 16:25:57, reed wrote: > Perhaps we ...
14 years, 2 months ago (2010-09-10 23:16:16 UTC) #4
reed
14 years, 1 month ago (2010-09-17 21:21:24 UTC) #5
LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b