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

Side by Side Diff: src/gpu/GrReducedClip.h

Issue 181903002: Revert "Revert of Add getReducedClipStack to lua canvas (https://codereview.chromium.org/180283004/… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix no gpu build Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/core/SkTLList.h ('k') | src/utils/SkLua.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkClipStack.h" 9 #include "SkClipStack.h"
10 #include "SkTLList.h" 10 #include "SkTLList.h"
(...skipping 12 matching lines...) Expand all
23 * SkClipStack::Elements that are equivalent to applying the full stack to the r ectangle. The clip 23 * SkClipStack::Elements that are equivalent to applying the full stack to the r ectangle. The clip
24 * stack generation id that represents the list of elements is returned in resul tGenID. The 24 * stack generation id that represents the list of elements is returned in resul tGenID. The
25 * initial state of the query rectangle before the first clip element is applied is returned via 25 * initial state of the query rectangle before the first clip element is applied is returned via
26 * initialState. Optionally, the caller can request a tighter bounds on the clip be returned via 26 * initialState. Optionally, the caller can request a tighter bounds on the clip be returned via
27 * tighterBounds. If not NULL, tighterBounds will always be contained by queryBo unds after return. 27 * tighterBounds. If not NULL, tighterBounds will always be contained by queryBo unds after return.
28 * If tighterBounds is specified then it is assumed that the caller will implici tly clip against it. 28 * If tighterBounds is specified then it is assumed that the caller will implici tly clip against it.
29 * If the caller specifies non-NULL for requiresAA then it will indicate whether anti-aliasing is 29 * If the caller specifies non-NULL for requiresAA then it will indicate whether anti-aliasing is
30 * required to process any of the elements in the result. 30 * required to process any of the elements in the result.
31 * 31 *
32 * This may become a member function of SkClipStack when its interface is determ ined to be stable. 32 * This may become a member function of SkClipStack when its interface is determ ined to be stable.
33 * Marked SK_API so that SkLua can call this in a shared library build.
33 */ 34 */
34 void ReduceClipStack(const SkClipStack& stack, 35 SK_API void ReduceClipStack(const SkClipStack& stack,
35 const SkIRect& queryBounds, 36 const SkIRect& queryBounds,
36 ElementList* result, 37 ElementList* result,
37 int32_t* resultGenID, 38 int32_t* resultGenID,
38 InitialState* initialState, 39 InitialState* initialState,
39 SkIRect* tighterBounds = NULL, 40 SkIRect* tighterBounds = NULL,
40 bool* requiresAA = NULL); 41 bool* requiresAA = NULL);
41 42
42 } // namespace GrReducedClip 43 } // namespace GrReducedClip
OLDNEW
« no previous file with comments | « src/core/SkTLList.h ('k') | src/utils/SkLua.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698