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

Issue 6851048: Allow SkPicture-derived classes install their own SkPicturePlayback-derived object (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by robertphillips
Modified:
12 years, 1 month ago
Reviewers:
DerekS, reed1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This CL allows SkPicture-derived classes to override SkPicture's ctors to install their own SkPicturePlayback-derived objects. The skp version needs to be exposed to allow derived SkPicture classes to be able to check the stream's version number themselves. Note, I tried adding a virtual 'createPlaybackObj' entry point but, given SkPicture's handling of playback objects this seemed even more fragile then this approach.

Patch Set 1 #

Patch Set 2 : removed debugger.gyp #

Total comments: 2

Patch Set 3 : Fixed typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -15 lines) Patch
M include/core/SkPicture.h View 1 2 2 chunks +15 lines, -4 lines 0 comments Download
M src/core/SkPicture.cpp View 1 chunk +0 lines, -11 lines 0 comments Download

Messages

Total messages: 4
robertphillips
12 years, 1 month ago (2012-11-13 20:28:43 UTC) #1
DerekS
lgtm with one nit https://codereview.appspot.com/6851048/diff/2001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.appspot.com/6851048/diff/2001/include/core/SkPicture.h#newcode164 include/core/SkPicture.h:164: // install their own SkPicturePlayback-derived ...
12 years, 1 month ago (2012-11-13 20:37:08 UTC) #2
reed1
lgtm
12 years, 1 month ago (2012-11-13 20:38:57 UTC) #3
robertphillips
12 years, 1 month ago (2012-11-13 20:41:47 UTC) #4
committed as r6405

https://codereview.appspot.com/6851048/diff/2001/include/core/SkPicture.h
File include/core/SkPicture.h (right):

https://codereview.appspot.com/6851048/diff/2001/include/core/SkPicture.h#new...
include/core/SkPicture.h:164: // install their own SkPicturePlayback-derived
playes,SkPictureRecord-derived
On 2012/11/13 20:37:08, DerekS wrote:
> s/playes/players

Done.
Sign in to reply to this message.

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