aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDrawState.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-09-05 14:27:43 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-09-05 14:27:43 -0700
commit2a9ca782ba5db5a7ebdc315655d9a30dcd6d9845 (patch)
tree80ededcb7acfb6facf9229d80ade757d19b1e458 /src/gpu/GrDrawState.h
parent03e844a0bc5f7b5dff14e3a06e8fc4ab6bfb16ea (diff)
Make GrDrawState and GrEffectStage use the pending io/exec ref mechanisms.
BUG=skia:2889 R=robertphillips@google.com Author: bsalomon@google.com Review URL: https://codereview.chromium.org/542723004
Diffstat (limited to 'src/gpu/GrDrawState.h')
-rw-r--r--src/gpu/GrDrawState.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h
index f7dc69f0a1..2fe56a3d34 100644
--- a/src/gpu/GrDrawState.h
+++ b/src/gpu/GrDrawState.h
@@ -8,9 +8,9 @@
#ifndef GrDrawState_DEFINED
#define GrDrawState_DEFINED
-#include "GrRODrawState.h"
-
#include "GrBlend.h"
+#include "GrProgramResource.h"
+#include "GrRODrawState.h"
#include "effects/GrSimpleTextureEffect.h"
/**
@@ -414,7 +414,9 @@ public:
*
* @param target The render target to set.
*/
- void setRenderTarget(GrRenderTarget* target) { fRenderTarget.reset(SkSafeRef(target)); }
+ void setRenderTarget(GrRenderTarget* target) {
+ fRenderTarget.setResource(SkSafeRef(target), GrProgramResource::kWrite_IOType);
+ }
/// @}