Add SkCanvas::writePixels that takes info+pixels directly
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 7 Mar 2014 03:25:16 +0000 (03:25 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 7 Mar 2014 03:25:16 +0000 (03:25 +0000)
commit4cd9e2169e35cd67ee7358acea6541245e1d1744
tree6e78d84ef91181b41f5c45a73bab003c63780f10
parenta5572e5bb2a2bbeeb59de0741c2527869d365a0c
Add SkCanvas::writePixels that takes info+pixels directly

add corresponding methods to device (w/ diff name to avoid colliding with exising virtuals)

BUG=skia:
R=bsalomon@google.com, robertphillips@google.com, junov@google.com, junov@chromium.org

Author: reed@google.com

Review URL: https://codereview.chromium.org/180113010

git-svn-id: http://skia.googlecode.com/svn/trunk@13697 2bbb7eff-a529-9590-31e7-b0007b416f81
23 files changed:
bench/PremulAndUnpremulAlphaOpsBench.cpp
bench/WritePixelsBench.cpp
gyp/bench.gyp
gyp/bench.gypi
gyp/skia_for_chromium_defines.gypi
gyp/tests.gypi
include/core/SkBitmapDevice.h
include/core/SkCanvas.h
include/core/SkDevice.h
include/gpu/SkGpuDevice.h
src/core/SkBitmapDevice.cpp
src/core/SkCanvas.cpp
src/core/SkConfig8888.h
src/core/SkDevice.cpp
src/gpu/SkGpuDevice.cpp
src/utils/SkDeferredCanvas.cpp
src/utils/SkGatherPixelRefsAndRects.h
src/utils/SkPictureUtils.cpp
tests/DeferredCanvasTest.cpp
tests/PremulAlphaRoundTripTest.cpp
tests/WritePixelsTest.cpp
tools/sk_tool_utils.cpp [new file with mode: 0644]
tools/sk_tool_utils.h [new file with mode: 0644]