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

Side by Side Diff: samplecode/SampleApp.h

Issue 2072813002: Revert of Lots of progress switching to SkColorSpace rather than SkColorProfileType (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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 | « include/views/SkWindow.h ('k') | samplecode/SampleApp.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 Skia 2 * Copyright 2011 Skia
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 #ifndef SampleApp_DEFINED 8 #ifndef SampleApp_DEFINED
9 #define SampleApp_DEFINED 9 #define SampleApp_DEFINED
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 } 109 }
110 if (nullptr == surface) { 110 if (nullptr == surface) {
111 surface = this->INHERITED::createSurface(); 111 surface = this->INHERITED::createSurface();
112 } 112 }
113 return surface; 113 return surface;
114 } 114 }
115 115
116 void draw(SkCanvas*) override; 116 void draw(SkCanvas*) override;
117 117
118 void setDeviceType(DeviceType type); 118 void setDeviceType(DeviceType type);
119 void setDeviceColorType(SkColorType, sk_sp<SkColorSpace>); 119 void setDeviceColorType(SkColorType, SkColorProfileType);
120 void toggleRendering(); 120 void toggleRendering();
121 void toggleSlideshow(); 121 void toggleSlideshow();
122 void toggleFPS(); 122 void toggleFPS();
123 void showOverview(); 123 void showOverview();
124 void toggleDistanceFieldFonts(); 124 void toggleDistanceFieldFonts();
125 void setPixelGeometry(int pixelGeometryIndex); 125 void setPixelGeometry(int pixelGeometryIndex);
126 126
127 GrContext* getGrContext() const { return fDevManager->getGrContext(); } 127 GrContext* getGrContext() const { return fDevManager->getGrContext(); }
128 128
129 void setZoomCenter(float x, float y); 129 void setZoomCenter(float x, float y);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 void postAnimatingEvent(); 232 void postAnimatingEvent();
233 int findByTitle(const char*); 233 int findByTitle(const char*);
234 void listTitles(); 234 void listTitles();
235 SkSize tileSize() const; 235 SkSize tileSize() const;
236 bool sendAnimatePulse(); 236 bool sendAnimatePulse();
237 237
238 typedef SkOSWindow INHERITED; 238 typedef SkOSWindow INHERITED;
239 }; 239 };
240 240
241 #endif 241 #endif
OLDNEW
« no previous file with comments | « include/views/SkWindow.h ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698