diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-21 19:27:48 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-21 19:27:48 +0000 |
commit | 78a1078f17f4f0ae63415298517262a64f706af6 (patch) | |
tree | 6f622a5a976570c22f9806b63f52cccbeacad5a8 /include/gpu | |
parent | 05f85ade7895606badc57e4137c48ee5c8eefab5 (diff) |
Create new target to hold gpu test code, enable direct testing of GrEffects in GM.
R=robertphillips@google.com, jvanverth@google.com, egdaniel@google.com
Author: bsalomon@google.com
Review URL: https://chromiumcodereview.appspot.com/23352003
git-svn-id: http://skia.googlecode.com/svn/trunk@10866 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrContext.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index ab3870915b..ae932bd1e4 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -33,6 +33,7 @@ class GrPathRenderer; class GrResourceEntry; class GrResourceCache; class GrStencilBuffer; +class GrTestTarget; class GrTextureParams; class GrVertexBuffer; class GrVertexBufferAllocPool; @@ -825,6 +826,9 @@ public: GrDrawTarget* getTextTarget(); const GrIndexBuffer* getQuadIndexBuffer() const; + // Called by tests that draw directly to the context via GrDrawTarget + void getTestTarget(GrTestTarget*); + /** * Stencil buffers add themselves to the cache using addStencilBuffer. findStencilBuffer is * called to check the cache for a SB that matches an RT's criteria. |