OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "SkDrawCommand.h" | 10 #include "SkDrawCommand.h" |
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 fDy = dy; | 869 fDy = dy; |
870 fDrawType = TRANSLATE; | 870 fDrawType = TRANSLATE; |
871 | 871 |
872 fInfo.push(SkObjectParser::ScalarToString(dx, "SkScalar dx: ")); | 872 fInfo.push(SkObjectParser::ScalarToString(dx, "SkScalar dx: ")); |
873 fInfo.push(SkObjectParser::ScalarToString(dy, "SkScalar dy: ")); | 873 fInfo.push(SkObjectParser::ScalarToString(dy, "SkScalar dy: ")); |
874 } | 874 } |
875 | 875 |
876 void Translate::execute(SkCanvas* canvas) { | 876 void Translate::execute(SkCanvas* canvas) { |
877 canvas->translate(fDx, fDy); | 877 canvas->translate(fDx, fDy); |
878 } | 878 } |
OLD | NEW |