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

Side by Side Diff: samplecode/SampleApp.cpp

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « samplecode/SampleApp.h ('k') | samplecode/SampleAtlas.cpp » ('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 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 845
846 static SkTaskGroup::Enabler enabled(-1); 846 static SkTaskGroup::Enabler enabled(-1);
847 gSampleWindow = this; 847 gSampleWindow = this;
848 848
849 fDeviceType = kRaster_DeviceType; 849 fDeviceType = kRaster_DeviceType;
850 #if SK_SUPPORT_GPU 850 #if SK_SUPPORT_GPU
851 if (FLAGS_gpu) { 851 if (FLAGS_gpu) {
852 fDeviceType = kGPU_DeviceType; 852 fDeviceType = kGPU_DeviceType;
853 } 853 }
854 #endif 854 #endif
855 855
856 #if DEFAULT_TO_GPU 856 #if DEFAULT_TO_GPU
857 fDeviceType = kGPU_DeviceType; 857 fDeviceType = kGPU_DeviceType;
858 #endif 858 #endif
859 #if SK_ANGLE && DEFAULT_TO_ANGLE 859 #if SK_ANGLE && DEFAULT_TO_ANGLE
860 fDeviceType = kANGLE_DeviceType; 860 fDeviceType = kANGLE_DeviceType;
861 #endif 861 #endif
862 #if SK_COMMAND_BUFFER && DEFAULT_TO_COMMAND_BUFFER 862 #if SK_COMMAND_BUFFER && DEFAULT_TO_COMMAND_BUFFER
863 fDeviceType = kCommandBuffer_DeviceType; 863 fDeviceType = kCommandBuffer_DeviceType;
864 #endif 864 #endif
865 865
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
1785 this->onUpdateMenu(fAppMenu); 1785 this->onUpdateMenu(fAppMenu);
1786 this->onUpdateMenu(fSlideMenu); 1786 this->onUpdateMenu(fSlideMenu);
1787 return true; 1787 return true;
1788 } 1788 }
1789 return this->INHERITED::onHandleChar(uni); 1789 return this->INHERITED::onHandleChar(uni);
1790 } 1790 }
1791 1791
1792 void SampleWindow::setDeviceType(DeviceType type) { 1792 void SampleWindow::setDeviceType(DeviceType type) {
1793 if (type == fDeviceType) 1793 if (type == fDeviceType)
1794 return; 1794 return;
1795 1795
1796 fDevManager->tearDownBackend(this); 1796 fDevManager->tearDownBackend(this);
1797 1797
1798 fDeviceType = type; 1798 fDeviceType = type;
1799 1799
1800 fDevManager->setUpBackend(this, fMSAASampleCount); 1800 fDevManager->setUpBackend(this, fMSAASampleCount);
1801 1801
1802 this->updateTitle(); 1802 this->updateTitle();
1803 this->inval(nullptr); 1803 this->inval(nullptr);
1804 } 1804 }
1805 1805
1806 void SampleWindow::setDeviceColorType(SkColorType ct, SkColorProfileType pt) { 1806 void SampleWindow::setDeviceColorType(SkColorType ct, SkColorProfileType pt) {
1807 this->setColorType(ct, pt); 1807 this->setColorType(ct, pt);
1808 1808
1809 fDevManager->tearDownBackend(this); 1809 fDevManager->tearDownBackend(this);
1810 1810
1811 fDevManager->setUpBackend(this, fMSAASampleCount); 1811 fDevManager->setUpBackend(this, fMSAASampleCount);
1812 1812
1813 this->updateTitle(); 1813 this->updateTitle();
1814 this->inval(nullptr); 1814 this->inval(nullptr);
1815 } 1815 }
1816 1816
1817 void SampleWindow::toggleSlideshow() { 1817 void SampleWindow::toggleSlideshow() {
1818 fAnimating = !fAnimating; 1818 fAnimating = !fAnimating;
1819 this->postAnimatingEvent(); 1819 this->postAnimatingEvent();
1820 this->updateTitle(); 1820 this->updateTitle();
1821 } 1821 }
1822 1822
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
2330 #ifdef SK_BUILD_FOR_MAC 2330 #ifdef SK_BUILD_FOR_MAC
2331 setenv("ANDROID_ROOT", "/android/device/data", 0); 2331 setenv("ANDROID_ROOT", "/android/device/data", 0);
2332 #endif 2332 #endif
2333 SkGraphics::Init(); 2333 SkGraphics::Init();
2334 SkEvent::Init(); 2334 SkEvent::Init();
2335 } 2335 }
2336 2336
2337 void application_term() { 2337 void application_term() {
2338 SkEvent::Term(); 2338 SkEvent::Term();
2339 } 2339 }
OLDNEW
« no previous file with comments | « samplecode/SampleApp.h ('k') | samplecode/SampleAtlas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698