Index: src/gpu/GrDrawState.h |
diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h |
index f7dc69f0a151b1dfc7780f89a8a23624fbfe969d..2fe56a3d3431157151514a35495ad19e2b8cf3cc 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); |
+ } |
/// @} |