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

Unified Diff: gm/mixedxfermodes.cpp

Issue 13910009: Use blitframebuffer to implement copySurface. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 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 | « no previous file | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/mixedxfermodes.cpp
===================================================================
--- gm/mixedxfermodes.cpp (revision 8613)
+++ gm/mixedxfermodes.cpp (working copy)
@@ -45,12 +45,6 @@
}
virtual void onDraw(SkCanvas* canvas) {
- // FIXME: Currently necessary for GPU to be able to make dst-copy in SampleApp because
- // main layer is not a texture.
- SkPaint layerPaint;
- layerPaint.setXfermodeMode(SkXfermode::kSrc_Mode);
- canvas->saveLayer(NULL, &layerPaint);
-
SkPaint bgPaint;
bgPaint.setShader(fBG.get());
canvas->drawPaint(bgPaint);
@@ -86,8 +80,6 @@
areaSqrt/50,
SkIntToScalar(size.fHeight / 2),
txtPaint);
-
- canvas->restore();
}
private:
« no previous file with comments | « no previous file | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698