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

Side by Side Diff: include/core/SkPicture.h

Issue 1060863004: Reduce sizeof(SkPicture::Analysis) from 24 bytes to 2 bytes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: robertphillips nits Created 5 years, 7 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 | « no previous file | src/core/SkPicture.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 2007 The Android Open Source Project 2 * Copyright 2007 The Android Open Source Project
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 8
9 #ifndef SkPicture_DEFINED 9 #ifndef SkPicture_DEFINED
10 #define SkPicture_DEFINED 10 #define SkPicture_DEFINED
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 SkPicture const* const* drawablePicts() const; 285 SkPicture const* const* drawablePicts() const;
286 286
287 struct PathCounter; 287 struct PathCounter;
288 288
289 struct Analysis { 289 struct Analysis {
290 Analysis() {} // Only used by SkPictureData codepath. 290 Analysis() {} // Only used by SkPictureData codepath.
291 explicit Analysis(const SkRecord&); 291 explicit Analysis(const SkRecord&);
292 292
293 bool suitableForGpuRasterization(const char** reason, int sampleCount) c onst; 293 bool suitableForGpuRasterization(const char** reason, int sampleCount) c onst;
294 294
295 bool fWillPlaybackBitmaps; 295 uint8_t fNumSlowPathsAndDashEffects;
296 bool fHasText; 296 bool fWillPlaybackBitmaps : 1;
297 int fNumPaintWithPathEffectUses; 297 bool fHasText : 1;
298 int fNumFastPathDashEffects;
299 int fNumAAConcavePaths;
300 int fNumAAHairlineConcavePaths;
301 int fNumAADFEligibleConcavePaths;
302 } fAnalysis; 298 } fAnalysis;
303 299
304 friend class SkPictureRecorder; // SkRecord-based constructor. 300 friend class SkPictureRecorder; // SkRecord-based constructor.
305 friend class GrLayerHoister; // access to fRecord 301 friend class GrLayerHoister; // access to fRecord
306 friend class ReplaceDraw; 302 friend class ReplaceDraw;
307 friend class SkPictureUtils; 303 friend class SkPictureUtils;
308 friend class SkRecordedDrawable; 304 friend class SkRecordedDrawable;
309 }; 305 };
310 SK_COMPILE_ASSERT(sizeof(SkPicture) <= 104, SkPictureSize); 306 SK_COMPILE_ASSERT(sizeof(SkPicture) <= 88, SkPictureSize);
311 307
312 #endif 308 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkPicture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698