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

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

Issue 13195002: Unit test improvements to fully validate the SkImage contract (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « gyp/tests.gyp ('k') | src/image/SkImagePriv.h » ('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 /* 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 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 int fSaveLayerCount; // number of successful saveLayer calls 1016 int fSaveLayerCount; // number of successful saveLayer calls
1017 1017
1018 SkMetaData* fMetaData; 1018 SkMetaData* fMetaData;
1019 1019
1020 SkSurface_Base* fSurfaceBase; 1020 SkSurface_Base* fSurfaceBase;
1021 SkSurface_Base* getSurfaceBase() const { return fSurfaceBase; } 1021 SkSurface_Base* getSurfaceBase() const { return fSurfaceBase; }
1022 void setSurfaceBase(SkSurface_Base* sb) { 1022 void setSurfaceBase(SkSurface_Base* sb) {
1023 fSurfaceBase = sb; 1023 fSurfaceBase = sb;
1024 } 1024 }
1025 friend class SkSurface_Base; 1025 friend class SkSurface_Base;
1026 friend class SkSurface_Gpu;
1026 1027
1027 bool fDeviceCMDirty; // cleared by updateDeviceCMCache() 1028 bool fDeviceCMDirty; // cleared by updateDeviceCMCache()
1028 void updateDeviceCMCache(); 1029 void updateDeviceCMCache();
1029 1030
1030 friend class SkDrawIter; // needs setupDrawForLayerDevice() 1031 friend class SkDrawIter; // needs setupDrawForLayerDevice()
1031 friend class AutoDrawLooper; 1032 friend class AutoDrawLooper;
1032 1033
1033 SkDevice* createLayerDevice(SkBitmap::Config, int width, int height, 1034 SkDevice* createLayerDevice(SkBitmap::Config, int width, int height,
1034 bool isOpaque); 1035 bool isOpaque);
1035 1036
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 fCanvas = NULL; 1123 fCanvas = NULL;
1123 } 1124 }
1124 } 1125 }
1125 1126
1126 private: 1127 private:
1127 SkCanvas* fCanvas; 1128 SkCanvas* fCanvas;
1128 int fSaveCount; 1129 int fSaveCount;
1129 }; 1130 };
1130 1131
1131 #endif 1132 #endif
OLDNEW
« no previous file with comments | « gyp/tests.gyp ('k') | src/image/SkImagePriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698