Index: src/gpu/GrDrawTarget.h |
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h |
index dd2224bdbdd49f8cd5f5dde6ee331245a512cc68..552314bca352f634879991bcfa3247c5340383b3 100644 |
--- a/src/gpu/GrDrawTarget.h |
+++ b/src/gpu/GrDrawTarget.h |
@@ -855,6 +855,14 @@ protected: |
GrDeviceCoordTexture fDstCopy; |
}; |
+ // Makes a copy of the dst if it is necessary for the draw. Returns false if a copy is required |
+ // but couldn't be made. Otherwise, returns true. This method needs to be protected because it |
+ // needs to be accessed by GLPrograms to setup a correct drawstate |
+ bool setupDstReadIfNecessary(DrawInfo* info) { |
+ return this->setupDstReadIfNecessary(&info->fDstCopy, info->getDevBounds()); |
+ } |
+ bool setupDstReadIfNecessary(GrDeviceCoordTexture* dstCopy, const SkRect* drawBounds); |
+ |
private: |
// A subclass can optionally overload this function to be notified before |
// vertex and index space is reserved. |
@@ -913,13 +921,6 @@ private: |
void releasePreviousVertexSource(); |
void releasePreviousIndexSource(); |
- // Makes a copy of the dst if it is necessary for the draw. Returns false if a copy is required |
- // but couldn't be made. Otherwise, returns true. |
- bool setupDstReadIfNecessary(DrawInfo* info) { |
- return this->setupDstReadIfNecessary(&info->fDstCopy, info->getDevBounds()); |
- } |
- bool setupDstReadIfNecessary(GrDeviceCoordTexture* dstCopy, const SkRect* drawBounds); |
- |
// Check to see if this set of draw commands has been sent out |
virtual bool isIssued(uint32_t drawID) { return true; } |