# reed: https://codereview.chromium.org/233943002
# GM itself may be changed
image-surface
+
+# yunchao: https://codereview.chromium.org/221953002/
+# This change resized the canvas for some GM cases. It is better to show the
+# visual difference in viewer.html for these cases.
+aaclip
+composeshader
+peekpixels
}
virtual SkISize onISize() SK_OVERRIDE {
- return SkISize::Make(640, 480);
+ return SkISize::Make(240, 120);
}
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
}
virtual SkISize onISize() SK_OVERRIDE {
- return make_isize(640, 480);
+ return make_isize(120, 120);
}
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
}
virtual SkISize onISize() SK_OVERRIDE {
- return SkISize::Make(640, 480);
+ return SkISize::Make(360, 120);
}
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
///////////////////////////////////////////////////////////////////////////////////////////
/** \class SkComposeShader
- This subclass of shader returns the coposition of two other shaders, combined by
+ This subclass of shader returns the composition of two other shaders, combined by
a xfermode.
*/
class SK_API SkComposeShader : public SkShader {
public:
/** Create a new compose shader, given shaders A, B, and a combining xfermode mode.
When the xfermode is called, it will be given the result from shader A as its
- "dst", and the result of from shader B as its "src".
+ "dst", and the result from shader B as its "src".
mode->xfer32(sA_result, sB_result, ...)
@param shaderA The colors from this shader are seen as the "dst" by the xfermode
@param shaderB The colors from this shader are seen as the "src" by the xfermode