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 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1342 fPipeStream.reset(new SkDynamicMemoryWStream); | 1342 fPipeStream.reset(new SkDynamicMemoryWStream); |
1343 canvas = fPipeSerializer.beginWrite(SkRect::MakeWH(this->width(), this->
height()), | 1343 canvas = fPipeSerializer.beginWrite(SkRect::MakeWH(this->width(), this->
height()), |
1344 fPipeStream.get()); | 1344 fPipeStream.get()); |
1345 // canvas = fRecorder.beginRecording(9999, 9999, nullptr, 0); | 1345 // canvas = fRecorder.beginRecording(9999, 9999, nullptr, 0); |
1346 } else { | 1346 } else { |
1347 canvas = this->INHERITED::beforeChildren(canvas); | 1347 canvas = this->INHERITED::beforeChildren(canvas); |
1348 } | 1348 } |
1349 | 1349 |
1350 if (fUseClip) { | 1350 if (fUseClip) { |
1351 canvas->drawColor(0xFFFF88FF); | 1351 canvas->drawColor(0xFFFF88FF); |
1352 canvas->clipPath(fClipPath, SkRegion::kIntersect_Op, true); | 1352 canvas->clipPath(fClipPath, SkCanvas::kIntersect_Op, true); |
1353 } | 1353 } |
1354 | 1354 |
1355 // Install a flags filter proxy canvas if needed | 1355 // Install a flags filter proxy canvas if needed |
1356 if (fLCDState != SkOSMenu::kMixedState || | 1356 if (fLCDState != SkOSMenu::kMixedState || |
1357 fAAState != SkOSMenu::kMixedState || | 1357 fAAState != SkOSMenu::kMixedState || |
1358 fSubpixelState != SkOSMenu::kMixedState || | 1358 fSubpixelState != SkOSMenu::kMixedState || |
1359 fHintingState > 0 || | 1359 fHintingState > 0 || |
1360 fFilterQualityIndex > 0) { | 1360 fFilterQualityIndex > 0) { |
1361 canvas = new FlagsFilterCanvas(canvas, fLCDState, fAAState, fSubpixelSta
te, fHintingState, | 1361 canvas = new FlagsFilterCanvas(canvas, fLCDState, fAAState, fSubpixelSta
te, fHintingState, |
1362 fFilterQualityIndex); | 1362 fFilterQualityIndex); |
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2308 #ifdef SK_BUILD_FOR_MAC | 2308 #ifdef SK_BUILD_FOR_MAC |
2309 setenv("ANDROID_ROOT", "/android/device/data", 0); | 2309 setenv("ANDROID_ROOT", "/android/device/data", 0); |
2310 #endif | 2310 #endif |
2311 SkGraphics::Init(); | 2311 SkGraphics::Init(); |
2312 SkEvent::Init(); | 2312 SkEvent::Init(); |
2313 } | 2313 } |
2314 | 2314 |
2315 void application_term() { | 2315 void application_term() { |
2316 SkEvent::Term(); | 2316 SkEvent::Term(); |
2317 } | 2317 } |
OLD | NEW |