inline GrDrawTarget::copyDrawState

git-svn-id: http://skia.googlecode.com/svn/trunk@3435 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2012-03-19 21:09:08 +00:00
parent f8aa18c08d
commit 4a44b4b505
2 changed files with 3 additions and 5 deletions

View File

@ -519,10 +519,6 @@ void GrDrawTarget::restoreDrawState(const SavedDrawState& state) {
fCurrDrawState = *state.fState.get();
}
void GrDrawTarget::copyDrawState(const GrDrawTarget& srcTarget) {
fCurrDrawState = srcTarget.fCurrDrawState;
}
bool GrDrawTarget::reserveVertexSpace(GrVertexLayout vertexLayout,
int vertexCount,
void** vertices) {

View File

@ -170,7 +170,9 @@ public:
*
* @param srcTarget draw target used as src of the draw state.
*/
void copyDrawState(const GrDrawTarget& srcTarget);
void copyDrawState(const GrDrawTarget& srcTarget) {
fCurrDrawState = srcTarget.fCurrDrawState;
}
/**
* The format of vertices is represented as a bitfield of flags.