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

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

Issue 1217573002: remove SkInstCnt (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 6 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 | « include/core/SkBitmap.h ('k') | include/core/SkCanvas.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 2013 Google Inc. 3 * Copyright 2013 Google Inc.
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 #ifndef SkBitmapDevice_DEFINED 9 #ifndef SkBitmapDevice_DEFINED
10 #define SkBitmapDevice_DEFINED 10 #define SkBitmapDevice_DEFINED
11 11
12 #include "SkDevice.h" 12 #include "SkDevice.h"
13 13
14 /////////////////////////////////////////////////////////////////////////////// 14 ///////////////////////////////////////////////////////////////////////////////
15 class SK_API SkBitmapDevice : public SkBaseDevice { 15 class SK_API SkBitmapDevice : public SkBaseDevice {
16 public: 16 public:
17 SK_DECLARE_INST_COUNT(SkBitmapDevice)
18
19 /** 17 /**
20 * Construct a new device with the specified bitmap as its backend. It is 18 * Construct a new device with the specified bitmap as its backend. It is
21 * valid for the bitmap to have no pixels associated with it. In that case, 19 * valid for the bitmap to have no pixels associated with it. In that case,
22 * any drawing to this device will have no effect. 20 * any drawing to this device will have no effect.
23 */ 21 */
24 SkBitmapDevice(const SkBitmap& bitmap); 22 SkBitmapDevice(const SkBitmap& bitmap);
25 23
26 /** 24 /**
27 * Create a new device along with its requisite pixel memory using 25 * Create a new device along with its requisite pixel memory using
28 * default SkSurfaceProps (i.e., kLegacyFontHost_InitType-style). 26 * default SkSurfaceProps (i.e., kLegacyFontHost_InitType-style).
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 SkImageFilter::Cache* getImageFilterCache() override; 146 SkImageFilter::Cache* getImageFilterCache() override;
149 147
150 SkBitmap fBitmap; 148 SkBitmap fBitmap;
151 149
152 void setNewSize(const SkISize&); // Used by SkCanvas for resetForNextPictur e(). 150 void setNewSize(const SkISize&); // Used by SkCanvas for resetForNextPictur e().
153 151
154 typedef SkBaseDevice INHERITED; 152 typedef SkBaseDevice INHERITED;
155 }; 153 };
156 154
157 #endif // SkBitmapDevice_DEFINED 155 #endif // SkBitmapDevice_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkBitmap.h ('k') | include/core/SkCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698