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

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

Issue 12545009: Adding option in SkPicture to record device-space bounds of draw commands. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/core/SkBBoxHierarchyRecord.h » ('j') | src/core/SkBBoxRecord.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkCanvas_DEFINED 10 #ifndef SkCanvas_DEFINED
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 // points to top of stack 1017 // points to top of stack
1018 MCRec* fMCRec; 1018 MCRec* fMCRec;
1019 // the first N recs that can fit here mean we won't call malloc 1019 // the first N recs that can fit here mean we won't call malloc
1020 uint32_t fMCRecStorage[32]; 1020 uint32_t fMCRecStorage[32];
1021 1021
1022 SkBounder* fBounder; 1022 SkBounder* fBounder;
1023 int fSaveLayerCount; // number of successful saveLayer calls 1023 int fSaveLayerCount; // number of successful saveLayer calls
1024 1024
1025 SkMetaData* fMetaData; 1025 SkMetaData* fMetaData;
1026 1026
1027 bool fQuickRejectEnabled;
1028 friend class SkDisableQuickRejectInScope;
1029
1027 SkSurface_Base* fSurfaceBase; 1030 SkSurface_Base* fSurfaceBase;
1028 SkSurface_Base* getSurfaceBase() const { return fSurfaceBase; } 1031 SkSurface_Base* getSurfaceBase() const { return fSurfaceBase; }
1029 void setSurfaceBase(SkSurface_Base* sb) { 1032 void setSurfaceBase(SkSurface_Base* sb) {
1030 fSurfaceBase = sb; 1033 fSurfaceBase = sb;
1031 } 1034 }
1032 friend class SkSurface_Base; 1035 friend class SkSurface_Base;
1033 friend class SkSurface_Gpu; 1036 friend class SkSurface_Gpu;
1034 1037
1035 bool fDeviceCMDirty; // cleared by updateDeviceCMCache() 1038 bool fDeviceCMDirty; // cleared by updateDeviceCMCache()
1036 void updateDeviceCMCache(); 1039 void updateDeviceCMCache();
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 fCanvas = NULL; 1135 fCanvas = NULL;
1133 } 1136 }
1134 } 1137 }
1135 1138
1136 private: 1139 private:
1137 SkCanvas* fCanvas; 1140 SkCanvas* fCanvas;
1138 int fSaveCount; 1141 int fSaveCount;
1139 }; 1142 };
1140 1143
1141 #endif 1144 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkBBoxHierarchyRecord.h » ('j') | src/core/SkBBoxRecord.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698