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

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

Issue 51033004: add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warning (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month 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 | « 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
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 */ 80 */
81 virtual void getGlobalBounds(SkIRect* bounds) const SK_OVERRIDE; 81 virtual void getGlobalBounds(SkIRect* bounds) const SK_OVERRIDE;
82 82
83 /** Returns true if the device's bitmap's config treats every pixels as 83 /** Returns true if the device's bitmap's config treats every pixels as
84 implicitly opaque. 84 implicitly opaque.
85 */ 85 */
86 virtual bool isOpaque() const SK_OVERRIDE { return fBitmap.isOpaque(); } 86 virtual bool isOpaque() const SK_OVERRIDE { return fBitmap.isOpaque(); }
87 87
88 /** Return the bitmap config of the device's pixels 88 /** Return the bitmap config of the device's pixels
89 */ 89 */
90 virtual SkBitmap::Config config() const SK_OVERRIDE { return fBitmap.getConf ig(); } 90 virtual SkBitmap::Config config() const SK_OVERRIDE { return fBitmap.config( ); }
91 91
92 /** 92 /**
93 * DEPRECATED: This will be made protected once WebKit stops using it. 93 * DEPRECATED: This will be made protected once WebKit stops using it.
94 * Instead use Canvas' writePixels method. 94 * Instead use Canvas' writePixels method.
95 * 95 *
96 * Similar to draw sprite, this method will copy the pixels in bitmap onto 96 * Similar to draw sprite, this method will copy the pixels in bitmap onto
97 * the device, with the top/left corner specified by (x, y). The pixel 97 * the device, with the top/left corner specified by (x, y). The pixel
98 * values in the device are completely replaced: there is no blending. 98 * values in the device are completely replaced: there is no blending.
99 * 99 *
100 * Currently if bitmap is backed by a texture this is a no-op. This may be 100 * Currently if bitmap is backed by a texture this is a no-op. This may be
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 /** Causes any deferred drawing to the device to be completed. 286 /** Causes any deferred drawing to the device to be completed.
287 */ 287 */
288 virtual void flush() SK_OVERRIDE {} 288 virtual void flush() SK_OVERRIDE {}
289 289
290 SkBitmap fBitmap; 290 SkBitmap fBitmap;
291 291
292 typedef SkBaseDevice INHERITED; 292 typedef SkBaseDevice INHERITED;
293 }; 293 };
294 294
295 #endif // SkBitmapDevice_DEFINED 295 #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