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

Issue 400043003: Run CanvasState test across a library boundary. (Closed)

Created:
6 years, 5 months ago by scroggo
Modified:
6 years, 5 months ago
Reviewers:
djsollen, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@canvasState2
Project:
skia
Visibility:
Public.

Description

Run CanvasState test across a library boundary. Refactor CanvasStateTest to pull out functions which can either be called directly or from a shared library. Add a command line flag to pass in the path to a library to open to call those functions from. Separate different CanvasTest tests into separate DEF_TEST tests. This allows them to be run in parallel. Move the ifdefs outside of function declarations to skip running CanvasTest tests which do nothing. Add the canvas_state_lib target. It is a shared library that exports some functions to be called by another version of Skia. BUG=b/15693384 Committed: https://skia.googlesource.com/skia/+/24519371cb541db6f59d903d21878ed9c45eb549

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Total comments: 11

Patch Set 3 : New class to open the library and close it. #

Total comments: 2

Patch Set 4 : Add descriptions. Run test locally when failing to load library. #

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -54 lines) Patch
A gyp/canvas_state_lib.gyp View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
M gyp/tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/utils/SkCanvasStateUtils.cpp View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A tests/CanvasStateHelpers.h View 1 1 chunk +52 lines, -0 lines 0 comments Download
A tests/CanvasStateHelpers.cpp View 1 1 chunk +71 lines, -0 lines 0 comments Download
M tests/CanvasStateTest.cpp View 1 2 3 4 12 chunks +118 lines, -54 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
scroggo
https://codereview.chromium.org/400043003/diff/1/tests/CanvasStateTest.cpp File tests/CanvasStateTest.cpp (right): https://codereview.chromium.org/400043003/diff/1/tests/CanvasStateTest.cpp#newcode198 tests/CanvasStateTest.cpp:198: &localRegion); Note that I'm passing a pointer to an ...
6 years, 5 months ago (2014-07-17 21:32:38 UTC) #1
reed1
You can decompose any region into an array of SkIRects, and then reconstruct it on ...
6 years, 5 months ago (2014-07-18 12:52:38 UTC) #2
djsollen
https://codereview.chromium.org/400043003/diff/1/gyp/common_conditions.gypi File gyp/common_conditions.gypi (right): https://codereview.chromium.org/400043003/diff/1/gyp/common_conditions.gypi#newcode189 gyp/common_conditions.gypi:189: # For now. Perhaps I should do what mtklein ...
6 years, 5 months ago (2014-07-18 14:11:54 UTC) #3
scroggo
ptal https://codereview.chromium.org/400043003/diff/1/gyp/common_conditions.gypi File gyp/common_conditions.gypi (right): https://codereview.chromium.org/400043003/diff/1/gyp/common_conditions.gypi#newcode189 gyp/common_conditions.gypi:189: # For now. Perhaps I should do what ...
6 years, 5 months ago (2014-07-18 19:31:02 UTC) #4
djsollen
https://codereview.chromium.org/400043003/diff/20001/gyp/canvas_state_lib.gyp File gyp/canvas_state_lib.gyp (right): https://codereview.chromium.org/400043003/diff/20001/gyp/canvas_state_lib.gyp#newcode18 gyp/canvas_state_lib.gyp:18: # Dummy 'most' target, since gyp_skia sets 'most' to ...
6 years, 5 months ago (2014-07-22 15:06:34 UTC) #5
scroggo
https://codereview.chromium.org/400043003/diff/20001/gyp/canvas_state_lib.gyp File gyp/canvas_state_lib.gyp (right): https://codereview.chromium.org/400043003/diff/20001/gyp/canvas_state_lib.gyp#newcode18 gyp/canvas_state_lib.gyp:18: # Dummy 'most' target, since gyp_skia sets 'most' to ...
6 years, 5 months ago (2014-07-22 17:10:11 UTC) #6
djsollen
https://codereview.chromium.org/400043003/diff/20001/tests/CanvasStateTest.cpp File tests/CanvasStateTest.cpp (right): https://codereview.chromium.org/400043003/diff/20001/tests/CanvasStateTest.cpp#newcode99 tests/CanvasStateTest.cpp:99: // And draw to it in the second Skia. ...
6 years, 5 months ago (2014-07-22 17:24:42 UTC) #7
scroggo
https://codereview.chromium.org/400043003/diff/20001/gyp/canvas_state_lib.gyp File gyp/canvas_state_lib.gyp (right): https://codereview.chromium.org/400043003/diff/20001/gyp/canvas_state_lib.gyp#newcode18 gyp/canvas_state_lib.gyp:18: # Dummy 'most' target, since gyp_skia sets 'most' to ...
6 years, 5 months ago (2014-07-22 18:12:01 UTC) #8
djsollen
lgtm
6 years, 5 months ago (2014-07-22 18:22:01 UTC) #9
scroggo
The CQ bit was checked by scroggo@google.com
6 years, 5 months ago (2014-07-22 19:25:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/scroggo@google.com/400043003/80001
6 years, 5 months ago (2014-07-22 19:26:43 UTC) #11
commit-bot: I haz the power
6 years, 5 months ago (2014-07-22 19:39:01 UTC) #12
Message was sent while issue was closed.
Change committed as 24519371cb541db6f59d903d21878ed9c45eb549

Powered by Google App Engine
This is Rietveld 408576698