diff options
author | 2013-05-28 17:25:49 +0000 | |
---|---|---|
committer | 2013-05-28 17:25:49 +0000 | |
commit | bb6a3178c3e79c8549b332e4ce84c64b59964f1e (patch) | |
tree | 446bce7a60e690aad40a2448c40b4cfe825008f5 /src/gpu/GrDrawState.h | |
parent | ccd7afb6fb2df9774e57fb4d7f62f9504cabf03e (diff) |
Make GrContext track the current matrix, render target, and clip directly rather than using GrDrawState.
R=robertphillips@google.com, jvanverth@google.com
Author: bsalomon@google.com
Review URL: https://chromiumcodereview.appspot.com/15821008
git-svn-id: http://skia.googlecode.com/svn/trunk@9297 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrDrawState.h')
-rw-r--r-- | src/gpu/GrDrawState.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h index 80ad28eac5..bf3ef74e94 100644 --- a/src/gpu/GrDrawState.h +++ b/src/gpu/GrDrawState.h @@ -95,12 +95,12 @@ public: } /** - * Initializes the GrDrawState based on a GrPaint. Note that GrDrawState - * encompasses more than GrPaint. Aspects of GrDrawState that have no - * GrPaint equivalents are not modified. GrPaint has fewer stages than - * GrDrawState. The extra GrDrawState stages are disabled. + * Initializes the GrDrawState based on a GrPaint, view matrix and render target. Note that + * GrDrawState encompasses more than GrPaint. Aspects of GrDrawState that have no GrPaint + * equivalents are set to default values. GrPaint has fewer stages than GrDrawState. The extra + * GrDrawState stages are disabled. */ - void setFromPaint(const GrPaint& paint); + void setFromPaint(const GrPaint& , const SkMatrix& viewMatrix, GrRenderTarget*); /////////////////////////////////////////////////////////////////////////// /// @name Vertex Attributes |