Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: samplecode/SampleApp.cpp

Issue 2388213003: Revert of Analytic AntiAlias for Convex Shapes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkAAAConstants.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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"
37 36
38 #include "SkReadBuffer.h" 37 #include "SkReadBuffer.h"
39 #include "SkStream.h" 38 #include "SkStream.h"
40 39
41 #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) 40 #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
42 #include "SkCGUtils.h" 41 #include "SkCGUtils.h"
43 #endif 42 #endif
44 43
45 #if SK_SUPPORT_GPU 44 #if SK_SUPPORT_GPU
46 # include "gl/GrGLInterface.h" 45 # include "gl/GrGLInterface.h"
(...skipping 1747 matching lines...) Expand 10 before | Expand all | Expand 10 after
1794 if (this->sendAnimatePulse()) { 1793 if (this->sendAnimatePulse()) {
1795 this->inval(nullptr); 1794 this->inval(nullptr);
1796 } 1795 }
1797 break; 1796 break;
1798 case ' ': 1797 case ' ':
1799 gAnimTimer.togglePauseResume(); 1798 gAnimTimer.togglePauseResume();
1800 if (this->sendAnimatePulse()) { 1799 if (this->sendAnimatePulse()) {
1801 this->inval(nullptr); 1800 this->inval(nullptr);
1802 } 1801 }
1803 break; 1802 break;
1804 case 'A':
1805 GlobalAAConfig::getInstance().fUseAnalyticAA =
1806 !GlobalAAConfig::getInstance().fUseAnalyticAA;
1807 this->inval(nullptr);
1808 break;
1809 case 'B': 1803 case 'B':
1810 post_event_to_sink(new SkEvent("PictFileView::toggleBBox"), curr_vie w(this)); 1804 post_event_to_sink(new SkEvent("PictFileView::toggleBBox"), curr_vie w(this));
1811 // Cannot call updateTitle() synchronously, because the toggleBBox e vent is still in 1805 // Cannot call updateTitle() synchronously, because the toggleBBox e vent is still in
1812 // the queue. 1806 // the queue.
1813 post_event_to_sink(new SkEvent(gUpdateWindowTitleEvtName), this); 1807 post_event_to_sink(new SkEvent(gUpdateWindowTitleEvtName), this);
1814 this->inval(nullptr); 1808 this->inval(nullptr);
1815 break; 1809 break;
1816 case 'D': 1810 case 'D':
1817 toggleDistanceFieldFonts(); 1811 toggleDistanceFieldFonts();
1818 break; 1812 break;
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
2393 #ifdef SK_BUILD_FOR_MAC 2387 #ifdef SK_BUILD_FOR_MAC
2394 setenv("ANDROID_ROOT", "/android/device/data", 0); 2388 setenv("ANDROID_ROOT", "/android/device/data", 0);
2395 #endif 2389 #endif
2396 SkGraphics::Init(); 2390 SkGraphics::Init();
2397 SkEvent::Init(); 2391 SkEvent::Init();
2398 } 2392 }
2399 2393
2400 void application_term() { 2394 void application_term() {
2401 SkEvent::Term(); 2395 SkEvent::Term();
2402 } 2396 }
OLDNEW
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkAAAConstants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698