aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-11 22:00:22 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-11 22:00:22 +0000
commit63150afcc0c4120370db6f5566cd404584345668 (patch)
tree6b6dae9c4b1bdfba80998dd9cd9e754eabc18044 /gm
parent5a6324e3140eb16cd5255867eae02a2c88d54271 (diff)
Use blitframebuffer to implement copySurface.
Author: bsalomon@google.com Reviewed By: robertphillips@google.com Review URL: https://chromiumcodereview.appspot.com/13910009 git-svn-id: http://skia.googlecode.com/svn/trunk@8633 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm')
-rw-r--r--gm/mixedxfermodes.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/gm/mixedxfermodes.cpp b/gm/mixedxfermodes.cpp
index beb5d5410e..c0045f84ae 100644
--- a/gm/mixedxfermodes.cpp
+++ b/gm/mixedxfermodes.cpp
@@ -45,12 +45,6 @@ protected:
}
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 @@ protected:
areaSqrt/50,
SkIntToScalar(size.fHeight / 2),
txtPaint);
-
- canvas->restore();
}
private: