|
add peekPixels to SkCanvas and SkSurface
This is motivated by a desire to remove call-sites that perform the folowing:
SkBaseDevice* dev = canvas->getDevice();
const SkBitmap& bitmap = dev->accessBitmap();
... read the bitmap
1. We'd like to deprecate getDevice() entirely
2. BaseDevice itself shouldn't know about bitmaps (only BitmapDevice should)
3. SkImage already has peekPixels()
Total comments: 6
Total comments: 9
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+324 lines, -111 lines) |
Patch |
|
M |
gm/aaclip.cpp
|
View
|
|
4 chunks |
+24 lines, -22 lines |
0 comments
|
Download
|
|
M |
gm/bitmapcopy.cpp
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
gm/bitmapsource.cpp
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
gm/deviceproperties.cpp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
gm/displacement.cpp
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
gm/gammatext.cpp
|
View
|
1
|
2 chunks |
+14 lines, -6 lines |
0 comments
|
Download
|
|
M |
gm/gm.h
|
View
|
1
2
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
gm/imagefiltersclipped.cpp
|
View
|
1
2
3
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
|
M |
gm/imagefiltersgraph.cpp
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
gm/imagefiltersscaled.cpp
|
View
|
1
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
gm/lighting.cpp
|
View
|
1
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
gm/matrixconvolution.cpp
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
gm/morphology.cpp
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
gm/ninepatchstretch.cpp
|
View
|
1
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
|
M |
gm/offsetimagefilter.cpp
|
View
|
1
|
2 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
|
M |
gm/tileimagefilter.cpp
|
View
|
1
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
gm/xfermodeimagefilter.cpp
|
View
|
1
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
include/core/SkBitmap.h
|
View
|
1
2
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
include/core/SkBitmapDevice.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
include/core/SkCanvas.h
|
View
|
1
2
|
5 chunks |
+68 lines, -4 lines |
5 comments
|
Download
|
|
M |
include/core/SkDevice.h
|
View
|
1
2
|
2 chunks |
+11 lines, -1 line |
0 comments
|
Download
|
|
M |
include/core/SkSurface.h
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
samplecode/SampleApp.cpp
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
samplecode/SampleCircle.cpp
|
View
|
1
2
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
samplecode/SampleLayers.cpp
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/core/SkBitmapDevice.cpp
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/core/SkCanvas.cpp
|
View
|
1
2
|
1 chunk |
+45 lines, -0 lines |
2 comments
|
Download
|
|
M |
src/core/SkDevice.cpp
|
View
|
1
2
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/image/SkImagePriv.h
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/image/SkSurface.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/SkpSkGrTest.cpp
|
View
|
1
2
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
tests/SurfaceTest.cpp
|
View
|
|
4 chunks |
+76 lines, -16 lines |
2 comments
|
Download
|
Total messages: 11 (0 generated)
|