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

Issue 83663006: Modify SkLazyPixelRef to use SkImageGenerator. (Closed)

Created:
7 years, 1 month ago by hal.canary
Modified:
7 years ago
Reviewers:
scroggo, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Modify SkLazyPixelRef to use SkImageGenerator. Add SkMallocPixelRef::Install for symmetry with other PixelRefs. Modify SkBitmapFactory to use new improved SkLazyPixelRef (later changes will change the SkBitmapFactory interface.) To do: find out if anyone uses SkBitmapFactory and SkImageCache. Modify unit tests to reflect new reality. Fix some cpplint problems in the files I touched. BUG=

Patch Set 1 #

Patch Set 2 : reupload #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -340 lines) Patch
M include/core/SkMallocPixelRef.h View 3 chunks +16 lines, -2 lines 2 comments Download
M src/core/SkMallocPixelRef.cpp View 2 chunks +29 lines, -0 lines 1 comment Download
M src/lazy/SkBitmapFactory.cpp View 2 chunks +72 lines, -23 lines 1 comment Download
M src/lazy/SkLazyPixelRef.h View 3 chunks +31 lines, -39 lines 1 comment Download
M src/lazy/SkLazyPixelRef.cpp View 1 chunk +67 lines, -238 lines 0 comments Download
M tests/CachedDecodingPixelRefTest.cpp View 5 chunks +11 lines, -12 lines 0 comments Download
M tests/DrawBitmapRectTest.cpp View 4 chunks +34 lines, -26 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
hal.canary
7 years, 1 month ago (2013-11-23 01:06:47 UTC) #1
reed1
https://codereview.chromium.org/83663006/diff/70001/include/core/SkMallocPixelRef.h File include/core/SkMallocPixelRef.h (right): https://codereview.chromium.org/83663006/diff/70001/include/core/SkMallocPixelRef.h#newcode49 include/core/SkMallocPixelRef.h:49: virtual void* onLockPixels(SkColorTable** colorTable); It is ok to leave ...
7 years ago (2013-11-25 18:06:56 UTC) #2
scroggo
Are you still working on this one, or should I just be looking at https://codereview.chromium.org/84783002/ ...
7 years ago (2013-12-02 19:03:23 UTC) #3
hal.canary
On 2013/12/02 19:03:23, scroggo wrote: > Are you still working on this one, or should ...
7 years ago (2013-12-02 19:04:50 UTC) #4
scroggo
7 years ago (2013-12-02 19:06:51 UTC) #5
On 2013/12/02 19:04:50, Hal Canary wrote:
> On 2013/12/02 19:03:23, scroggo wrote:
> > Are you still working on this one, or should I just be looking at
> > https://codereview.chromium.org/84783002/ ?
> > 
> >
>
https://codereview.chromium.org/83663006/diff/70001/include/core/SkMallocPixe...
> > File include/core/SkMallocPixelRef.h (right):
> > 
> >
>
https://codereview.chromium.org/83663006/diff/70001/include/core/SkMallocPixe...
> > include/core/SkMallocPixelRef.h:37: static bool Install(SkImageGenerator*
> > generator, SkBitmap* destination);
> > Is there a reason these changes aren't included in
> > https://codereview.chromium.org/84783002/ ?
> 
> I am not working on this one anymore.  Mike and I determined that since noone
is
> using SkBitmapFactory and SkLazyPixelRef, we can do away with those classes.

sgtm!

Powered by Google App Engine
This is Rietveld 408576698