OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 "SampleApp.h" | 8 #include "SampleApp.h" |
9 | 9 |
10 #include "OverView.h" | 10 #include "OverView.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "SkPictureRecorder.h" | 26 #include "SkPictureRecorder.h" |
27 #include "SkPM4fPriv.h" | 27 #include "SkPM4fPriv.h" |
28 #include "SkStream.h" | 28 #include "SkStream.h" |
29 #include "SkSurface.h" | 29 #include "SkSurface.h" |
30 #include "SkTemplates.h" | 30 #include "SkTemplates.h" |
31 #include "SkTSort.h" | 31 #include "SkTSort.h" |
32 #include "SkTime.h" | 32 #include "SkTime.h" |
33 #include "SkTypeface.h" | 33 #include "SkTypeface.h" |
34 #include "SkWindow.h" | 34 #include "SkWindow.h" |
35 #include "sk_tool_utils.h" | 35 #include "sk_tool_utils.h" |
| 36 #include "SkScan.h" |
36 | 37 |
37 #include "SkReadBuffer.h" | 38 #include "SkReadBuffer.h" |
38 #include "SkStream.h" | 39 #include "SkStream.h" |
39 | 40 |
40 #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) | 41 #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) |
41 #include "SkCGUtils.h" | 42 #include "SkCGUtils.h" |
42 #endif | 43 #endif |
43 | 44 |
44 #if SK_SUPPORT_GPU | 45 #if SK_SUPPORT_GPU |
45 # include "gl/GrGLInterface.h" | 46 # include "gl/GrGLInterface.h" |
(...skipping 1747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1793 if (this->sendAnimatePulse()) { | 1794 if (this->sendAnimatePulse()) { |
1794 this->inval(nullptr); | 1795 this->inval(nullptr); |
1795 } | 1796 } |
1796 break; | 1797 break; |
1797 case ' ': | 1798 case ' ': |
1798 gAnimTimer.togglePauseResume(); | 1799 gAnimTimer.togglePauseResume(); |
1799 if (this->sendAnimatePulse()) { | 1800 if (this->sendAnimatePulse()) { |
1800 this->inval(nullptr); | 1801 this->inval(nullptr); |
1801 } | 1802 } |
1802 break; | 1803 break; |
| 1804 case 'A': |
| 1805 GlobalAAConfig::getInstance().fUseAnalyticAA = |
| 1806 !GlobalAAConfig::getInstance().fUseAnalyticAA; |
| 1807 this->inval(nullptr); |
| 1808 break; |
1803 case 'B': | 1809 case 'B': |
1804 post_event_to_sink(new SkEvent("PictFileView::toggleBBox"), curr_vie
w(this)); | 1810 post_event_to_sink(new SkEvent("PictFileView::toggleBBox"), curr_vie
w(this)); |
1805 // Cannot call updateTitle() synchronously, because the toggleBBox e
vent is still in | 1811 // Cannot call updateTitle() synchronously, because the toggleBBox e
vent is still in |
1806 // the queue. | 1812 // the queue. |
1807 post_event_to_sink(new SkEvent(gUpdateWindowTitleEvtName), this); | 1813 post_event_to_sink(new SkEvent(gUpdateWindowTitleEvtName), this); |
1808 this->inval(nullptr); | 1814 this->inval(nullptr); |
1809 break; | 1815 break; |
1810 case 'D': | 1816 case 'D': |
1811 toggleDistanceFieldFonts(); | 1817 toggleDistanceFieldFonts(); |
1812 break; | 1818 break; |
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2387 #ifdef SK_BUILD_FOR_MAC | 2393 #ifdef SK_BUILD_FOR_MAC |
2388 setenv("ANDROID_ROOT", "/android/device/data", 0); | 2394 setenv("ANDROID_ROOT", "/android/device/data", 0); |
2389 #endif | 2395 #endif |
2390 SkGraphics::Init(); | 2396 SkGraphics::Init(); |
2391 SkEvent::Init(); | 2397 SkEvent::Init(); |
2392 } | 2398 } |
2393 | 2399 |
2394 void application_term() { | 2400 void application_term() { |
2395 SkEvent::Term(); | 2401 SkEvent::Term(); |
2396 } | 2402 } |
OLD | NEW |