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

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

Issue 54603004: Revert "Revert "add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warn… (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/SkCanvas.h ('k') | include/core/SkPaint.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 2010 The Android Open Source Project 3 * Copyright 2010 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 SkDevice_DEFINED 10 #ifndef SkDevice_DEFINED
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 * canvas. The root device will have its top-left at 0,0, but other devices 83 * canvas. The root device will have its top-left at 0,0, but other devices
84 * such as those associated with saveLayer may have a non-zero origin. 84 * such as those associated with saveLayer may have a non-zero origin.
85 */ 85 */
86 virtual void getGlobalBounds(SkIRect* bounds) const = 0; 86 virtual void getGlobalBounds(SkIRect* bounds) const = 0;
87 87
88 /** Returns true if the device's bitmap's config treats every pixel as 88 /** Returns true if the device's bitmap's config treats every pixel as
89 implicitly opaque. 89 implicitly opaque.
90 */ 90 */
91 virtual bool isOpaque() const = 0; 91 virtual bool isOpaque() const = 0;
92 92
93 /** DEPRECATED - Return the bitmap config of the device's pixels 93 /** Return the bitmap config of the device's pixels
94 */ 94 */
95 SK_ATTR_DEPRECATED("want to hide configness of the device -- don't use")
95 virtual SkBitmap::Config config() const = 0; 96 virtual SkBitmap::Config config() const = 0;
96 97
97 /** Return the bitmap associated with this device. Call this each time you n eed 98 /** Return the bitmap associated with this device. Call this each time you n eed
98 to access the bitmap, as it notifies the subclass to perform any flushin g 99 to access the bitmap, as it notifies the subclass to perform any flushin g
99 etc. before you examine the pixels. 100 etc. before you examine the pixels.
100 @param changePixels set to true if the caller plans to change the pixels 101 @param changePixels set to true if the caller plans to change the pixels
101 @return the device's bitmap 102 @return the device's bitmap
102 */ 103 */
103 const SkBitmap& accessBitmap(bool changePixels); 104 const SkBitmap& accessBitmap(bool changePixels);
104 105
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 SkDeviceProperties fLeakyProperties; 415 SkDeviceProperties fLeakyProperties;
415 416
416 #ifdef SK_DEBUG 417 #ifdef SK_DEBUG
417 bool fAttachedToCanvas; 418 bool fAttachedToCanvas;
418 #endif 419 #endif
419 420
420 typedef SkRefCnt INHERITED; 421 typedef SkRefCnt INHERITED;
421 }; 422 };
422 423
423 #endif 424 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkPaint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698