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

Unified Diff: gm/composeshader.cpp

Issue 1697523003: make SkComposeShader.h private (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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 | gyp/core.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/composeshader.cpp
diff --git a/gm/composeshader.cpp b/gm/composeshader.cpp
index d482bc942097299a368fede0cbb9ec959262eff5..2f3d99d36453f5ec586d83ef9819254f6471fa60 100644
--- a/gm/composeshader.cpp
+++ b/gm/composeshader.cpp
@@ -9,7 +9,6 @@
#include "SkBitmapProcShader.h"
#include "SkCanvas.h"
-#include "SkComposeShader.h"
#include "SkGradientShader.h"
#include "SkGraphics.h"
#include "SkShader.h"
@@ -36,7 +35,7 @@ static SkShader* make_shader(SkXfermode::Mode mode) {
SkAutoTUnref<SkXfermode> xfer(SkXfermode::Create(mode));
- return new SkComposeShader(shaderA, shaderB, xfer);
+ return SkShader::CreateComposeShader(shaderA, shaderB, xfer);
}
class ComposeShaderGM : public skiagm::GM {
@@ -194,11 +193,11 @@ protected:
SkAutoTUnref<SkXfermode> xfer(SkXfermode::Create(SkXfermode::kDstOver_Mode));
// gradient should appear over color bitmap
- SkAutoTUnref<SkShader> shader0(new SkComposeShader(fLinearGradientShader,
+ SkAutoTUnref<SkShader> shader0(SkShader::CreateComposeShader(fLinearGradientShader,
fColorBitmapShader,
xfer));
// gradient should appear over alpha8 bitmap colorized by the paint color
- SkAutoTUnref<SkShader> shader1(new SkComposeShader(fLinearGradientShader,
+ SkAutoTUnref<SkShader> shader1(SkShader::CreateComposeShader(fLinearGradientShader,
fAlpha8BitmapShader,
xfer));
@@ -226,7 +225,7 @@ protected:
}
private:
- /** This determines the length and width of the bitmaps used in the SkComposeShaders. Values
+ /** This determines the length and width of the bitmaps used in the ComposeShaders. Values
* above 20 may cause an SkASSERT to fail in SkSmallAllocator. However, larger values will
* work in a release build. You can change this parameter and then compile a release build
* to have this GM draw larger bitmaps for easier visual inspection.
« no previous file with comments | « no previous file | gyp/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698