aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpu.cpp
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@google.com>2014-12-04 06:01:45 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-04 06:01:45 -0800
commitf78c60c92a8c212fc462262f2ce81e584d0f02f8 (patch)
tree33a43f1d293a54764399846c504d1506d2cbd9e0 /src/gpu/GrGpu.cpp
parent841a6b54c11137e210aa81e8b56e1763c3571cb8 (diff)
Revert of move program descriptor generation to flush (patchset #7 id:120001 of https://codereview.chromium.org/777673003/)
Reason for revert: breaking linux build Original issue's description: > move program descriptor generation to flush > > BUG=skia: > > Committed: https://skia.googlesource.com/skia/+/829e1b80b1020b17f2078020c990e079b70c077c TBR=egdaniel@google.com,bsalomon@google.com,joshualitt@chromium.org NOTREECHECKS=true NOTRY=true BUG=skia: Review URL: https://codereview.chromium.org/776243005
Diffstat (limited to 'src/gpu/GrGpu.cpp')
-rw-r--r--src/gpu/GrGpu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp
index ac76e1503c..d97809f952 100644
--- a/src/gpu/GrGpu.cpp
+++ b/src/gpu/GrGpu.cpp
@@ -277,7 +277,7 @@ const GrIndexBuffer* GrGpu::getQuadIndexBuffer() const {
void GrGpu::draw(const GrOptDrawState& ds, const GrDrawTarget::DrawInfo& info) {
this->handleDirtyContext();
- if (!this->flushGraphicsState(ds)) {
+ if (!this->flushGraphicsState(ds, PrimTypeToDrawType(info.primitiveType()))) {
return;
}
this->onDraw(ds, info);
@@ -288,7 +288,7 @@ void GrGpu::stencilPath(const GrOptDrawState& ds,
const GrStencilSettings& stencilSettings) {
this->handleDirtyContext();
- if (!this->flushGraphicsState(ds)) {
+ if (!this->flushGraphicsState(ds, kStencilPath_DrawType)) {
return;
}
@@ -301,7 +301,7 @@ void GrGpu::drawPath(const GrOptDrawState& ds,
const GrStencilSettings& stencilSettings) {
this->handleDirtyContext();
- if (!this->flushGraphicsState(ds)) {
+ if (!this->flushGraphicsState(ds, kDrawPath_DrawType)) {
return;
}
@@ -318,7 +318,7 @@ void GrGpu::drawPaths(const GrOptDrawState& ds,
const GrStencilSettings& stencilSettings) {
this->handleDirtyContext();
- if (!this->flushGraphicsState(ds)) {
+ if (!this->flushGraphicsState(ds, kDrawPaths_DrawType)) {
return;
}