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

Side by Side Diff: include/utils/SkDeferredCanvas.h

Issue 1204433002: Begin kLegacyFontHost_InitType cleanup (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add dox 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/SkDevice.h ('k') | src/core/SkBitmapDevice.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 2012 Google Inc. 2 * Copyright 2012 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 SkDeferredCanvas_DEFINED 8 #ifndef SkDeferredCanvas_DEFINED
9 #define SkDeferredCanvas_DEFINED 9 #define SkDeferredCanvas_DEFINED
10 10
(...skipping 15 matching lines...) Expand all
26 class SK_API SkDeferredCanvas : public SkCanvas { 26 class SK_API SkDeferredCanvas : public SkCanvas {
27 public: 27 public:
28 class SK_API NotificationClient; 28 class SK_API NotificationClient;
29 29
30 /** Construct a canvas with the specified surface to draw into. 30 /** Construct a canvas with the specified surface to draw into.
31 This factory must be used for newImageSnapshot to work. 31 This factory must be used for newImageSnapshot to work.
32 @param surface Specifies a surface for the canvas to draw into. 32 @param surface Specifies a surface for the canvas to draw into.
33 */ 33 */
34 static SkDeferredCanvas* Create(SkSurface* surface); 34 static SkDeferredCanvas* Create(SkSurface* surface);
35 35
36 // static SkDeferredCanvas* Create(SkBaseDevice* device);
37
38 virtual ~SkDeferredCanvas(); 36 virtual ~SkDeferredCanvas();
39 37
40 /** 38 /**
41 * Specify the surface to be used by this canvas. Calling setSurface will 39 * Specify the surface to be used by this canvas. Calling setSurface will
42 * release the previously set surface or device. Takes a reference on the 40 * release the previously set surface or device. Takes a reference on the
43 * surface. 41 * surface.
44 * 42 *
45 * @param surface The surface that the canvas will raw into 43 * @param surface The surface that the canvas will raw into
46 * @return The surface argument, for convenience. 44 * @return The surface argument, for convenience.
47 */ 45 */
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 248
251 mutable SkISize fCachedCanvasSize; 249 mutable SkISize fCachedCanvasSize;
252 mutable bool fCachedCanvasSizeDirty; 250 mutable bool fCachedCanvasSizeDirty;
253 251
254 friend class SkDeferredCanvasTester; // for unit testing 252 friend class SkDeferredCanvasTester; // for unit testing
255 typedef SkCanvas INHERITED; 253 typedef SkCanvas INHERITED;
256 }; 254 };
257 255
258 256
259 #endif 257 #endif
OLDNEW
« no previous file with comments | « include/core/SkDevice.h ('k') | src/core/SkBitmapDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698