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

Issue 4872042: Hack to fix 3D CSS printing. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years ago by Steve VanDeBogart
Modified:
14 years ago
Reviewers:
bungeman, reed1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Hack to fix 3D CSS printing. BUG=chrome 82746

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -5 lines) Patch
M include/core/SkDevice.h View 1 2 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 6
Steve VanDeBogart
14 years ago (2011-08-12 15:46:46 UTC) #1
Steve VanDeBogart
Making setOrigin protected doesn't work because VectorPlatformDeviceSkia doesn't inherit from SkPDFDevice, so can't call setOrigin ...
14 years ago (2011-08-15 17:58:09 UTC) #2
bungeman
On 2011/08/15 17:58:09, Steve VanDeBogart wrote: > Making setOrigin protected doesn't work because VectorPlatformDeviceSkia doesn't ...
14 years ago (2011-08-15 18:13:52 UTC) #3
Steve VanDeBogart
On 2011/08/15 18:13:52, bungeman wrote: > On 2011/08/15 17:58:09, Steve VanDeBogart wrote: > > Making ...
14 years ago (2011-08-15 18:48:22 UTC) #4
bungeman
On 2011/08/15 18:48:22, Steve VanDeBogart wrote: > On 2011/08/15 18:13:52, bungeman wrote: > > On ...
14 years ago (2011-08-15 20:10:43 UTC) #5
Steve VanDeBogart
14 years ago (2011-08-15 20:48:42 UTC) #6
On 2011/08/15 20:10:43, bungeman wrote:
> On 2011/08/15 18:48:22, Steve VanDeBogart wrote:
> > On 2011/08/15 18:13:52, bungeman wrote:
> > > On 2011/08/15 17:58:09, Steve VanDeBogart wrote:
> > > > Making setOrigin protected doesn't work because VectorPlatformDeviceSkia
> > > doesn't
> > > > inherit from SkPDFDevice, so can't call setOrigin on that class.  Would
> you
> > > > prefer to make it public or use this friend hack?  I've rebased this CL
to
> > > undo
> > > > r2108.
> > > 
> > > I think the idea was to do something like setMatrixClip, it's protected in
> > > SkDevice, but public in SkPDFDevice (just a forward).
> > 
> > Oops, forgot Mike was on vacation.  Thanks for looking at this.
> > 
> > I tried what you suggested, and it still won't work, I can't access
getOrigin

Oops, looking at it again, I used the wrong variable, this will work.  Change in
http://codereview.appspot.com/4888048

> > either (it's protected, but in an SkDevice). I think we'd have to make
> getOrigin
> > public as well as forward setOrigin in SkPDFDevice.  Maybe cleaner to use
the
> > friend hack?
> 
> It seems that we should probably just make VectorPlatformDeviceSkia a friend
of
> SkPDFDevice (instead of SkDevice). And while we're at it, remove
> the setMatrixClip wrapper in SkPDFDevice.

SkPDFDevice doesn't use setMatrixClip...
Sign in to reply to this message.

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