OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 /* | 7 /* |
8 * Copyright 2014 Google Inc. | 8 * Copyright 2014 Google Inc. |
9 * | 9 * |
10 * Use of this source code is governed by a BSD-style license that can be | 10 * Use of this source code is governed by a BSD-style license that can be |
(...skipping 12 matching lines...) Expand all Loading... |
23 void GMSlide::draw(SkCanvas* canvas) { | 23 void GMSlide::draw(SkCanvas* canvas) { |
24 // Do we care about timing the draw of the background (once)? | 24 // Do we care about timing the draw of the background (once)? |
25 // Does the GM ever rely on drawBackground to lazily compute something? | 25 // Does the GM ever rely on drawBackground to lazily compute something? |
26 fGM->drawBackground(canvas); | 26 fGM->drawBackground(canvas); |
27 fGM->drawContent(canvas); | 27 fGM->drawContent(canvas); |
28 } | 28 } |
29 | 29 |
30 bool GMSlide::animate(const SkAnimTimer& timer) { | 30 bool GMSlide::animate(const SkAnimTimer& timer) { |
31 return fGM->animate(timer); | 31 return fGM->animate(timer); |
32 } | 32 } |
OLD | NEW |