Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(536)

Unified Diff: src/gpu/GrGpu.cpp

Issue 13314002: Add support for reading the dst pixel value in an effect. Use in a new effect for the kDarken xfer … (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Revert whitespace/comment changes accidentally made in GrGLProgramDesc.cpp Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrGpu.cpp
===================================================================
--- src/gpu/GrGpu.cpp (revision 8448)
+++ src/gpu/GrGpu.cpp (working copy)
@@ -330,13 +330,13 @@
////////////////////////////////////////////////////////////////////////////////
-bool GrGpu::setupClipAndFlushState(DrawType type) {
+bool GrGpu::setupClipAndFlushState(DrawType type, const GrDeviceCoordTexture* dstCopy) {
if (!fClipMaskManager.setupClipping(this->getClip())) {
return false;
}
- if (!this->flushGraphicsState(type)) {
+ if (!this->flushGraphicsState(type, dstCopy)) {
return false;
}
@@ -374,7 +374,8 @@
void GrGpu::onDraw(const DrawInfo& info) {
this->handleDirtyContext();
- if (!this->setupClipAndFlushState(PrimTypeToDrawType(info.primitiveType()))) {
+ if (!this->setupClipAndFlushState(PrimTypeToDrawType(info.primitiveType()),
+ info.getDstCopy())) {
return;
}
this->onGpuDraw(info);
@@ -387,7 +388,7 @@
GrAutoTRestore<GrStencilSettings> asr(this->drawState()->stencil());
this->setStencilPathSettings(*path, fill, this->drawState()->stencil());
- if (!this->setupClipAndFlushState(kStencilPath_DrawType)) {
+ if (!this->setupClipAndFlushState(kStencilPath_DrawType, NULL)) {
return;
}
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698