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

Issue 1595503002: SampleApp: Remove SkWindow::setColorType (Closed)

Created:
4 years, 11 months ago by Kimmo Kinnunen
Modified:
4 years, 11 months ago
Reviewers:
reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SampleApp: Remove SkWindow::setColorType Remove SkWindow::setColorType, it is used wrong and inconsistently. The color type is actually property of window backbuffer, used when the window is painted with software. This is as opposed to a generic window property that would affect all operation. Similar to MSAA sample count for window GPU backbuffer, the bitmap backbuffer color type should be a parameter of "attach" or "create window" functions, should this property ever be added back. The apps use the call wrong, setting the type as kRGBA_8888 or kBGRRA_8888 without no apparent rationale. These color types are incorrect, as the raster surface can not work with these. Reorganize the SkWindow::resize, since no change in SkWindow backbuffer size does not neccessarily mean that SkView would not need the call. Do not show the sw backbuffer color type in SampleApp title, as it does not really provide any information. On small screens, kBGRA_8888_ColorType fills up the whole title. BUG=skia:4733 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1595503002 Committed: https://skia.googlesource.com/skia/+/973d92cf91b21013361209e8a5c0c4685728847f

Patch Set 1 #

Patch Set 2 : ios fixes #

Patch Set 3 : mac build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -30 lines) Patch
M example/HelloWorld.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M experimental/SkV8Example/SkV8Example.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M experimental/iOSSampleApp/Shared/SkUIView.mm View 1 2 chunks +7 lines, -2 lines 0 comments Download
M experimental/iOSSampleApp/SkSampleUIView.mm View 1 1 chunk +1 line, -2 lines 0 comments Download
M include/views/SkWindow.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M samplecode/SampleApp.cpp View 1 1 chunk +0 lines, -3 lines 0 comments Download
M src/views/SkWindow.cpp View 2 chunks +5 lines, -15 lines 0 comments Download
M src/views/mac/SkNSView.mm View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M tools/VisualBench/VisualBench.cpp View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 19 (11 generated)
Kimmo Kinnunen
4 years, 11 months ago (2016-01-15 10:24:13 UTC) #3
reed1
This means we can't make a raster window backed by 565 or A8, but I'm ...
4 years, 11 months ago (2016-01-15 15:29:43 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1595503002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1595503002/1
4 years, 11 months ago (2016-01-18 08:36:31 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: Build-Mac10.9-Clang-Arm7-Debug-iOS-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac10.9-Clang-Arm7-Debug-iOS-Trybot/builds/778)
4 years, 11 months ago (2016-01-18 08:37:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1595503002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1595503002/20001
4 years, 11 months ago (2016-01-18 09:02:48 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: Build-Mac10.8-Clang-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac10.8-Clang-x86_64-Release-Trybot/builds/7739)
4 years, 11 months ago (2016-01-18 09:03:59 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1595503002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1595503002/40001
4 years, 11 months ago (2016-01-18 09:07:09 UTC) #17
commit-bot: I haz the power
4 years, 11 months ago (2016-01-18 09:18:38 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/973d92cf91b21013361209e8a5c0c4685728847f

Powered by Google App Engine
This is Rietveld 408576698