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

Issue 14437012: Fixes for piping bitmaps with encoded data. (Closed)

Created:
7 years, 8 months ago by scroggo
Modified:
7 years, 7 months ago
Reviewers:
reed1
CC:
skia-review_googlegroups.com, djsollen
Visibility:
Public.

Description

Fixes for piping bitmaps with encoded data. Eliminates some spew from gm when running while providing a resource path. SkGPipe: Instead of calling SkBitmap::flatten and SkBitmap::unflatten, call SkOrderedWriteBuffer::writeBitmap and SkOrderedReadBuffer::readBitmap, which will allow reading and writing bitmaps with encoded data. Provide an option to set a function on SkGPipeReader for decoding bitmaps that have encoded data. SamplePipeControllers: Set an option to use a function for decoding bitmaps on both PipeController and TiledPipeController. gmmain: Use a function for decoding bitmaps when deserializing a picture from a stream and when using SkGPipe. This results in successes for factory GM. SampleApp.cpp: Set a bitmap decoding function on SimplePC and TiledPipeController. Allows running GM:factory to work properly.

Patch Set 1 #

Patch Set 2 : Do not use bitmap storage when adding bitmaps to SkGPipeState. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -13 lines) Patch
M gm/gmmain.cpp View 3 chunks +8 lines, -3 lines 0 comments Download
M include/pipe/SkGPipe.h View 3 chunks +11 lines, -4 lines 0 comments Download
M samplecode/SampleApp.cpp View 3 chunks +3 lines, -0 lines 0 comments Download
M src/core/SkOrderedReadBuffer.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M src/pipe/SkGPipeRead.cpp View 1 3 chunks +13 lines, -1 line 0 comments Download
M src/pipe/SkGPipeWrite.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/pipe/utils/SamplePipeControllers.h View 3 chunks +4 lines, -2 lines 0 comments Download
M src/pipe/utils/SamplePipeControllers.cpp View 3 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
scroggo
7 years, 8 months ago (2013-04-23 20:22:00 UTC) #1
reed1
lgtm
7 years, 8 months ago (2013-04-23 21:14:36 UTC) #2
scroggo
The first patch actually resulted in a crash in gm for other GMs, so I ...
7 years, 8 months ago (2013-04-24 20:46:56 UTC) #3
scroggo
Adding Derek. We should discuss this more in person, but I want to try and ...
7 years, 8 months ago (2013-04-25 17:02:46 UTC) #4
reed1
1. We *so* need an arch. diagram/doc to capture all of this great explanation for ...
7 years, 8 months ago (2013-04-25 17:08:16 UTC) #5
reed1
7 years, 8 months ago (2013-04-25 17:08:28 UTC) #6
scroggo
On 2013/04/25 17:08:16, reed1 wrote: > 1. We *so* need an arch. diagram/doc to capture ...
7 years, 8 months ago (2013-04-25 18:47:30 UTC) #7
scroggo
7 years, 7 months ago (2013-04-29 17:35:49 UTC) #8
Message was sent while issue was closed.
Closed in favor of the above referenced CL

Powered by Google App Engine
This is Rietveld 408576698