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

Side by Side Diff: src/core/SkPicturePlayback.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 | « src/core/SkPictureFlat.cpp ('k') | src/core/SkPictureRecord.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 2014 Google Inc. 2 * Copyright 2014 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 "SkCanvas.h" 8 #include "SkCanvas.h"
9 #include "SkPatchUtils.h" 9 #include "SkPatchUtils.h"
10 #include "SkPictureData.h" 10 #include "SkPictureData.h"
11 #include "SkPicturePlayback.h" 11 #include "SkPicturePlayback.h"
12 #include "SkPictureRecord.h" 12 #include "SkPictureRecord.h"
13 #include "SkReader32.h" 13 #include "SkReader32.h"
14 #include "SkRSXform.h" 14 #include "SkRSXform.h"
15 #include "SkTextBlob.h" 15 #include "SkTextBlob.h"
16 #include "SkTDArray.h" 16 #include "SkTDArray.h"
17 #include "SkTypes.h" 17 #include "SkTypes.h"
18 18
19 // matches old SkCanvas::SaveFlags 19 // matches old SkCanvas::SaveFlags
20 enum LegacySaveFlags { 20 enum LegacySaveFlags {
21 kHasAlphaLayer_LegacySaveFlags = 0x04, 21 kHasAlphaLayer_LegacySaveFlags = 0x04,
22 kClipToLayer_LegacySaveFlags = 0x10, 22 kClipToLayer_LegacySaveFlags = 0x10,
23 }; 23 };
24 24
25 SkCanvas::SaveLayerFlags SkCanvas::LegacySaveFlagsToSaveLayerFlags(uint32_t flag s) { 25 SkCanvas::SaveLayerFlags SkCanvas::LegacySaveFlagsToSaveLayerFlags(uint32_t flag s) {
26 uint32_t layerFlags = 0; 26 uint32_t layerFlags = 0;
27 27
28 if (0 == (flags & kClipToLayer_LegacySaveFlags)) { 28 if (0 == (flags & kClipToLayer_LegacySaveFlags)) {
29 layerFlags |= SkCanvas::kDontClipToLayer_PrivateSaveLayerFlag; 29 layerFlags |= SkCanvas::kDontClipToLayer_PrivateSaveLayerFlag;
30 } 30 }
31 if (0 == (flags & kHasAlphaLayer_LegacySaveFlags)) { 31 if (0 == (flags & kHasAlphaLayer_LegacySaveFlags)) {
32 layerFlags |= kIsOpaque_SaveLayerFlag; 32 layerFlags |= kIsOpaque_SaveLayerFlag;
33 } 33 }
34 return layerFlags; 34 return layerFlags;
35 } 35 }
36 36
37 /* 37 /*
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 } break; 525 } break;
526 case TRANSLATE: { 526 case TRANSLATE: {
527 SkScalar dx = reader->readScalar(); 527 SkScalar dx = reader->readScalar();
528 SkScalar dy = reader->readScalar(); 528 SkScalar dy = reader->readScalar();
529 canvas->translate(dx, dy); 529 canvas->translate(dx, dy);
530 } break; 530 } break;
531 default: 531 default:
532 SkASSERTF(false, "Unknown draw type: %d", op); 532 SkASSERTF(false, "Unknown draw type: %d", op);
533 } 533 }
534 } 534 }
535
OLDNEW
« no previous file with comments | « src/core/SkPictureFlat.cpp ('k') | src/core/SkPictureRecord.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698