inline GrDrawTarget::copyDrawState
git-svn-id: http://skia.googlecode.com/svn/trunk@3435 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
f8aa18c08d
commit
4a44b4b505
@ -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) {
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user