OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 #include "GMSampleView.h" | 8 #include "GMSampleView.h" |
9 | 9 |
10 GMSampleView::GMSampleView(GM* gm) : fShowSize(false), fGM(gm) {} | 10 GMSampleView::GMSampleView(GM* gm) : fShowSize(false), fGM(gm) {} |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 } | 52 } |
53 } | 53 } |
54 | 54 |
55 void GMSampleView::onDrawBackground(SkCanvas* canvas) { | 55 void GMSampleView::onDrawBackground(SkCanvas* canvas) { |
56 fGM->drawBackground(canvas); | 56 fGM->drawBackground(canvas); |
57 } | 57 } |
58 | 58 |
59 bool GMSampleView::onAnimate(const SkAnimTimer& timer) { | 59 bool GMSampleView::onAnimate(const SkAnimTimer& timer) { |
60 return fGM->animate(timer); | 60 return fGM->animate(timer); |
61 } | 61 } |
62 | |
OLD | NEW |