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

Issue 22978012: Split SkDevice into SkBaseDevice and SkBitmapDevice (Closed)

Created:
7 years, 4 months ago by robertphillips
Modified:
7 years, 3 months ago
Reviewers:
reed, bsalomon, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Right now this change is structured to easily see what is going on in code review. If acceptable, I will split SkDevice.h/.cpp into two in a follow up CL.

Patch Set 1 #

Patch Set 2 : Moved code around to make code review easier #

Total comments: 2

Patch Set 3 : Renamed SkRasterDevice to SkCpuDevice #

Patch Set 4 : renamed SkDevice to SkBaseDevice; added typedef SkCpuDevice SkDevice; #

Patch Set 5 : rename SkCpuDevice to SkBitmapDevice #

Patch Set 6 : update to ToT, re-add SkBaseDevice::config & default parameter #

Total comments: 2

Patch Set 7 : Added deprecated comment in SkDevice.h #

Patch Set 8 : update to ToT #

Patch Set 9 : Updating to ToT (10994) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+736 lines, -500 lines) Patch
M bench/BlurImageFilterBench.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M bench/DeferredCanvasBench.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M bench/DisplacementBench.cpp View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M bench/MagnifierBench.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M bench/MergeBench.cpp View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M bench/benchmain.cpp View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -5 lines 0 comments Download
M debugger/QT/SkRasterWidget.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M debugger/QT/SkRasterWidget.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M experimental/PdfViewer/SkNulCanvas.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M experimental/PdfViewer/SkPdfRenderer.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M experimental/PdfViewer/SkTrackDevice.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -7 lines 0 comments Download
M experimental/PdfViewer/pdf_viewer_main.cpp View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M experimental/SkiaExamples/SkExample.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M experimental/iOSSampleApp/SkSampleUIView.mm View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M gm/beziereffects.cpp View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M gm/bitmapcopy.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M gm/deviceproperties.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M gm/displacement.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M gm/extractbitmap.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M gm/gm.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M gm/gmmain.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M gm/imagefiltersgraph.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M gm/lighting.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M gm/matrixconvolution.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M gm/morphology.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M gm/ninepatchstretch.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M gm/srcmode.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M gm/texdata.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M gm/xfermodeimagefilter.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M gm/xfermodes3.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkBitmapDevice.h View 1 2 3 4 5 6 7 8 1 chunk +280 lines, -1 line 0 comments Download
M include/core/SkCanvas.h View 1 2 3 4 5 6 7 8 8 chunks +13 lines, -13 lines 0 comments Download
M include/core/SkDevice.h View 1 2 3 4 5 6 7 8 18 chunks +61 lines, -109 lines 0 comments Download
M include/core/SkDraw.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M include/core/SkImageFilter.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M include/core/SkRRect.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M include/device/xps/SkXPSDevice.h View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -10 lines 0 comments Download
M include/gpu/SkGpuDevice.h View 1 2 3 4 5 6 7 8 7 chunks +13 lines, -13 lines 0 comments Download
M include/pdf/SkPDFDevice.h View 1 2 3 4 5 6 7 8 5 chunks +9 lines, -9 lines 0 comments Download
M include/utils/SkDeferredCanvas.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M samplecode/SampleApp.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M samplecode/SampleApp.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M samplecode/SampleCircle.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M samplecode/SampleTextureDomain.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkBBoxHierarchyRecord.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkBBoxHierarchyRecord.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkBBoxRecord.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 7 8 21 chunks +30 lines, -30 lines 0 comments Download
M src/core/SkDevice.cpp View 1 2 3 4 5 6 7 8 13 chunks +101 lines, -102 lines 0 comments Download
M src/core/SkDeviceImageFilterProxy.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M src/core/SkPicture.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkPictureRecord.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M src/device/xps/SkXPSDevice.cpp View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -8 lines 0 comments Download
M src/effects/SkColorFilterImageFilter.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkDropShadowImageFilter.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkMergeImageFilter.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkRectShaderImageFilter.cpp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M src/effects/SkTestImageFilters.cpp View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 7 8 6 chunks +10 lines, -10 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -8 lines 0 comments Download
M src/pipe/SkGPipeWrite.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M src/pipe/utils/SamplePipeControllers.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 2 3 4 5 6 7 8 8 chunks +26 lines, -26 lines 0 comments Download
M src/utils/SkPictureUtils.cpp View 1 2 3 4 5 6 7 8 5 chunks +10 lines, -7 lines 0 comments Download
M tests/CanvasTest.cpp View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -5 lines 0 comments Download
M tests/DeferredCanvasTest.cpp View 1 2 3 4 5 6 7 8 12 chunks +14 lines, -14 lines 0 comments Download
M tests/GradientTest.cpp View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
M tests/LayerDrawLooperTest.cpp View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -4 lines 0 comments Download
M tests/PictureTest.cpp View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -4 lines 0 comments Download
M tests/PremulAlphaRoundTripTest.cpp View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -5 lines 0 comments Download
M tests/ReadPixelsTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M tests/ReadWriteAlphaTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M tests/TileGridTest.cpp View 1 2 3 4 5 6 7 8 15 chunks +17 lines, -17 lines 0 comments Download
M tests/WritePixelsTest.cpp View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
robertphillips
7 years, 4 months ago (2013-08-15 13:23:20 UTC) #1
bsalomon
I'm in favor of this. Naming issue: We use the word "raster" all the time ...
7 years, 4 months ago (2013-08-15 13:41:36 UTC) #2
reed1
I like the idea too. I would like to explore reducing the API area on ...
7 years, 4 months ago (2013-08-15 14:46:28 UTC) #3
robertphillips
This patch renames SkRasterDevice to SkCpuDevice and removes the config() entry point from SkDevice. PTAL ...
7 years, 4 months ago (2013-08-15 17:34:07 UTC) #4
bsalomon
On 2013/08/15 17:34:07, robertphillips wrote: > This patch renames SkRasterDevice to SkCpuDevice and removes the ...
7 years, 4 months ago (2013-08-15 19:06:21 UTC) #5
robertphillips
PTAL - this latest patch should address the staging issues.
7 years, 4 months ago (2013-08-16 14:55:55 UTC) #6
bsalomon
On 2013/08/16 14:55:55, robertphillips wrote: > PTAL - this latest patch should address the staging ...
7 years, 4 months ago (2013-08-16 15:05:42 UTC) #7
reed1
to be honest, I thought about it, and think cpu is not nearly as good/clear ...
7 years, 4 months ago (2013-08-16 15:37:30 UTC) #8
robertphillips
SkCpuDevice has been renamed to SkBitmapDevice.
7 years, 4 months ago (2013-08-19 13:00:40 UTC) #9
bsalomon
On 2013/08/19 13:00:40, robertphillips wrote: > SkCpuDevice has been renamed to SkBitmapDevice. lgtm
7 years, 4 months ago (2013-08-19 13:19:27 UTC) #10
robertphillips
ping - Mike.
7 years, 4 months ago (2013-08-20 16:29:15 UTC) #11
reed1
lgtm
7 years, 4 months ago (2013-08-20 17:26:59 UTC) #12
robertphillips
committed as r10830
7 years, 4 months ago (2013-08-20 17:50:01 UTC) #13
robertphillips
Reverted in r10835 due to Chromium compilation issues.
7 years, 4 months ago (2013-08-21 13:08:03 UTC) #14
robertphillips
The only file that really changed in this patch is SkDevice.h. All the other changes ...
7 years, 4 months ago (2013-08-21 14:54:12 UTC) #15
reed1
https://codereview.chromium.org/22978012/diff/58077/include/core/SkDevice.h File include/core/SkDevice.h (right): https://codereview.chromium.org/22978012/diff/58077/include/core/SkDevice.h#newcode95 include/core/SkDevice.h:95: virtual SkBitmap::Config config() const = 0; // DEPRECATED ?
7 years, 4 months ago (2013-08-21 14:58:22 UTC) #16
reed1
lgtm
7 years, 4 months ago (2013-08-21 14:58:30 UTC) #17
robertphillips
https://codereview.chromium.org/22978012/diff/58077/include/core/SkDevice.h File include/core/SkDevice.h (right): https://codereview.chromium.org/22978012/diff/58077/include/core/SkDevice.h#newcode95 include/core/SkDevice.h:95: virtual SkBitmap::Config config() const = 0; On 2013/08/21 14:58:23, ...
7 years, 4 months ago (2013-08-21 15:14:12 UTC) #18
robertphillips
7 years, 3 months ago (2013-08-29 11:56:31 UTC) #19
Message was sent while issue was closed.
committed as r10995

Powered by Google App Engine
This is Rietveld 408576698