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/SkRecordDraw.h

Issue 696763002: Shrink saveLayer device bounds when it supplies an explicit bounds and has a complex paint (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address code review comments Created 6 years, 1 month 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/SkPicture.cpp ('k') | src/core/SkRecordDraw.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 #ifndef SkRecordDraw_DEFINED 8 #ifndef SkRecordDraw_DEFINED
9 #define SkRecordDraw_DEFINED 9 #define SkRecordDraw_DEFINED
10 10
11 #include "SkBBoxHierarchy.h" 11 #include "SkBBoxHierarchy.h"
12 #include "SkCanvas.h" 12 #include "SkCanvas.h"
13 #include "SkDrawPictureCallback.h" 13 #include "SkDrawPictureCallback.h"
14 #include "SkMatrix.h" 14 #include "SkMatrix.h"
15 #include "SkRecord.h" 15 #include "SkRecord.h"
16 16
17 // Fill a BBH to be used by SkRecordDraw to accelerate playback. 17 // Fill a BBH to be used by SkRecordDraw to accelerate playback.
18 void SkRecordFillBounds(const SkRecord&, SkBBoxHierarchy*); 18 void SkRecordFillBounds(const SkRect& cullRect, const SkRecord&, SkBBoxHierarchy *);
19 19
20 // Draw an SkRecord into an SkCanvas. A convenience wrapper around SkRecords::D raw. 20 // Draw an SkRecord into an SkCanvas. A convenience wrapper around SkRecords::D raw.
21 void SkRecordDraw(const SkRecord&, SkCanvas*, const SkBBoxHierarchy*, SkDrawPict ureCallback*); 21 void SkRecordDraw(const SkRecord&, SkCanvas*, const SkBBoxHierarchy*, SkDrawPict ureCallback*);
22 22
23 // Draw a portion of an SkRecord into an SkCanvas while replacing clears with dr awRects. 23 // Draw a portion of an SkRecord into an SkCanvas while replacing clears with dr awRects.
24 // When drawing a portion of an SkRecord the CTM on the passed in canvas must be 24 // When drawing a portion of an SkRecord the CTM on the passed in canvas must be
25 // the composition of the replay matrix with the record-time CTM (for the portio n 25 // the composition of the replay matrix with the record-time CTM (for the portio n
26 // of the record that is being replayed). For setMatrix calls to behave correctl y 26 // of the record that is being replayed). For setMatrix calls to behave correctl y
27 // the initialCTM parameter must set to just the replay matrix. 27 // the initialCTM parameter must set to just the replay matrix.
28 void SkRecordPartialDraw(const SkRecord&, SkCanvas*, const SkRect&, unsigned sta rt, unsigned stop, 28 void SkRecordPartialDraw(const SkRecord&, SkCanvas*, const SkRect&, unsigned sta rt, unsigned stop,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 68
69 private: 69 private:
70 const SkRect fClearRect; 70 const SkRect fClearRect;
71 typedef Draw INHERITED; 71 typedef Draw INHERITED;
72 }; 72 };
73 73
74 } // namespace SkRecords 74 } // namespace SkRecords
75 75
76 #endif//SkRecordDraw_DEFINED 76 #endif//SkRecordDraw_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkPicture.cpp ('k') | src/core/SkRecordDraw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698