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

Side by Side Diff: samplecode/SampleApp.cpp

Issue 2355483002: abstract name of clipping ops, to transtion to a more restricted set (Closed)
Patch Set: no need for ifdef for globals Created 4 years, 3 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 | « public.bzl ('k') | samplecode/SampleClip.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 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « public.bzl ('k') | samplecode/SampleClip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698