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

Issue 201153023: Adding a new SkSurface factory for generating surfaces from the scratch texture pool. (Closed)

Created:
6 years, 9 months ago by Justin Novosad
Modified:
6 years, 9 months ago
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Adding a new SkSurface factory for generating surfaces from the scratch texture pool. TEST=Surface unit test BUG=crbug.com/351798 Committed: http://code.google.com/p/skia/source/detail?r=13864

Patch Set 1 #

Patch Set 2 : comment fix #

Total comments: 1

Patch Set 3 : improved doc for new API + fix onCreateDevice #

Total comments: 1

Patch Set 4 : moar dox #

Patch Set 5 : build/typo fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -42 lines) Patch
M include/core/SkSurface.h View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M include/gpu/GrContext.h View 1 chunk +5 lines, -0 lines 0 comments Download
M include/gpu/SkGpuDevice.h View 1 4 chunks +11 lines, -8 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M src/gpu/GrResourceCache.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 6 chunks +13 lines, -24 lines 1 comment Download
M src/image/SkSurface_Gpu.cpp View 4 chunks +28 lines, -5 lines 0 comments Download
M tests/SurfaceTest.cpp View 7 chunks +42 lines, -5 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Justin Novosad
PTAL
6 years, 9 months ago (2014-03-19 18:59:08 UTC) #1
bsalomon
https://codereview.chromium.org/201153023/diff/10009/include/gpu/SkGpuDevice.h File include/gpu/SkGpuDevice.h (right): https://codereview.chromium.org/201153023/diff/10009/include/gpu/SkGpuDevice.h#newcode67 include/gpu/SkGpuDevice.h:67: SkGpuDevice(GrContext*, GrRenderTarget*, unsigned flags = 0); I'm wondering if ...
6 years, 9 months ago (2014-03-19 19:15:37 UTC) #2
reed1
If we're going to make a new PUBLIC factory, lets carefully define why a client ...
6 years, 9 months ago (2014-03-19 19:18:56 UTC) #3
Justin Novosad
On 2014/03/19 19:18:56, reed1 wrote: > If we're going to make a new PUBLIC factory, ...
6 years, 9 months ago (2014-03-19 20:01:41 UTC) #4
bsalomon
lgtm with suggestion about comment https://codereview.chromium.org/201153023/diff/30001/include/core/SkSurface.h File include/core/SkSurface.h (right): https://codereview.chromium.org/201153023/diff/30001/include/core/SkSurface.h#newcode79 include/core/SkSurface.h:79: * managed by the ...
6 years, 9 months ago (2014-03-19 20:10:42 UTC) #5
reed1
lgtm -- defers to brian
6 years, 9 months ago (2014-03-19 20:25:54 UTC) #6
Justin Novosad
The CQ bit was checked by junov@chromium.org
6 years, 9 months ago (2014-03-19 20:35:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/junov@chromium.org/201153023/40001
6 years, 9 months ago (2014-03-19 20:35:09 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-19 20:40:50 UTC) #9
commit-bot: I haz the power
Retried try job too often on Build-Mac10.8-Clang-x86-Release-Trybot for step(s) BuildSkiaLib, BuildTests http://108.170.219.164:10117/buildstatus?builder=Build-Mac10.8-Clang-x86-Release-Trybot&number=350
6 years, 9 months ago (2014-03-19 20:40:51 UTC) #10
Justin Novosad
The CQ bit was checked by junov@chromium.org
6 years, 9 months ago (2014-03-19 20:43:15 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/junov@chromium.org/201153023/60001
6 years, 9 months ago (2014-03-19 20:43:21 UTC) #12
commit-bot: I haz the power
Change committed as 13864
6 years, 9 months ago (2014-03-19 21:19:20 UTC) #13
bungeman-skia
https://codereview.chromium.org/201153023/diff/60001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.chromium.org/201153023/diff/60001/src/gpu/SkGpuDevice.cpp#newcode212 src/gpu/SkGpuDevice.cpp:212: SkPixelRef* pr = SkNEW_ARGS(SkGrPixelRef, (info, surface, flags & kCached_Flag)); ...
6 years, 9 months ago (2014-03-19 23:23:26 UTC) #14
bungeman-skia
6 years, 9 months ago (2014-03-19 23:27:52 UTC) #15
Message was sent while issue was closed.
On 2014/03/19 23:23:26, bungeman1 wrote:
> https://codereview.chromium.org/201153023/diff/60001/src/gpu/SkGpuDevice.cpp
> File src/gpu/SkGpuDevice.cpp (right):
> 
>
https://codereview.chromium.org/201153023/diff/60001/src/gpu/SkGpuDevice.cpp#...
> src/gpu/SkGpuDevice.cpp:212: SkPixelRef* pr = SkNEW_ARGS(SkGrPixelRef, (info,
> surface, flags & kCached_Flag));
> This is causing the Windows bots to fail about conversion to bool. This should
> be SkToBool(...)

Since the change is trivial, committed r13870.

Powered by Google App Engine
This is Rietveld 408576698