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

Side by Side Diff: samplecode/SampleApp.cpp

Issue 1595503002: SampleApp: Remove SkWindow::setColorType (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: mac build fix Created 4 years, 11 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') | src/views/SkWindow.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 1964 matching lines...) Expand 10 before | Expand all | Expand 10 after
1975 } 1975 }
1976 1976
1977 void SampleWindow::updateTitle() { 1977 void SampleWindow::updateTitle() {
1978 SkString title; 1978 SkString title;
1979 if (!this->getRawTitle(&title)) { 1979 if (!this->getRawTitle(&title)) {
1980 title.set("<unknown>"); 1980 title.set("<unknown>");
1981 } 1981 }
1982 1982
1983 title.prepend(gDeviceTypePrefix[fDeviceType]); 1983 title.prepend(gDeviceTypePrefix[fDeviceType]);
1984 1984
1985 title.prepend(" ");
1986 title.prepend(sk_tool_utils::colortype_name(this->getBitmap().colorType()));
1987
1988 if (fTilingMode != kNo_Tiling) { 1985 if (fTilingMode != kNo_Tiling) {
1989 title.prependf("<T: %s> ", gTilingInfo[fTilingMode].label); 1986 title.prependf("<T: %s> ", gTilingInfo[fTilingMode].label);
1990 } 1987 }
1991 if (fAnimating) { 1988 if (fAnimating) {
1992 title.prepend("<A> "); 1989 title.prepend("<A> ");
1993 } 1990 }
1994 if (fRotate) { 1991 if (fRotate) {
1995 title.prepend("<R> "); 1992 title.prepend("<R> ");
1996 } 1993 }
1997 if (fPerspAnim) { 1994 if (fPerspAnim) {
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
2265 #ifdef SK_BUILD_FOR_MAC 2262 #ifdef SK_BUILD_FOR_MAC
2266 setenv("ANDROID_ROOT", "/android/device/data", 0); 2263 setenv("ANDROID_ROOT", "/android/device/data", 0);
2267 #endif 2264 #endif
2268 SkGraphics::Init(); 2265 SkGraphics::Init();
2269 SkEvent::Init(); 2266 SkEvent::Init();
2270 } 2267 }
2271 2268
2272 void application_term() { 2269 void application_term() {
2273 SkEvent::Term(); 2270 SkEvent::Term();
2274 } 2271 }
OLDNEW
« no previous file with comments | « include/views/SkWindow.h ('k') | src/views/SkWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698