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

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

Issue 71813002: move SkImageInfo into its own header (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/SkAlpha.h ('k') | include/core/SkColorTable.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 SkBitmap_DEFINED 10 #ifndef SkBitmap_DEFINED
11 #define SkBitmap_DEFINED 11 #define SkBitmap_DEFINED
12 12
13 #include "Sk64.h" 13 #include "Sk64.h"
14 #include "SkAlpha.h"
15 #include "SkColor.h" 14 #include "SkColor.h"
16 #include "SkColorTable.h" 15 #include "SkColorTable.h"
16 #include "SkImageInfo.h"
17 #include "SkPoint.h" 17 #include "SkPoint.h"
18 #include "SkRefCnt.h" 18 #include "SkRefCnt.h"
19 19
20 struct SkImageInfo;
21 struct SkIRect; 20 struct SkIRect;
22 struct SkRect; 21 struct SkRect;
23 class SkPaint; 22 class SkPaint;
24 class SkPixelRef; 23 class SkPixelRef;
25 class SkRegion; 24 class SkRegion;
26 class SkString; 25 class SkString;
27 26
28 class GrTexture; 27 class GrTexture;
29 28
30 /** \class SkBitmap 29 /** \class SkBitmap
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 817
819 // returns the address of the byte that contains the x coordinate 818 // returns the address of the byte that contains the x coordinate
820 inline uint8_t* SkBitmap::getAddr1(int x, int y) const { 819 inline uint8_t* SkBitmap::getAddr1(int x, int y) const {
821 SkASSERT(fPixels); 820 SkASSERT(fPixels);
822 SkASSERT(fConfig == kA1_Config); 821 SkASSERT(fConfig == kA1_Config);
823 SkASSERT((unsigned)x < fWidth && (unsigned)y < fHeight); 822 SkASSERT((unsigned)x < fWidth && (unsigned)y < fHeight);
824 return (uint8_t*)fPixels + y * fRowBytes + (x >> 3); 823 return (uint8_t*)fPixels + y * fRowBytes + (x >> 3);
825 } 824 }
826 825
827 #endif 826 #endif
OLDNEW
« no previous file with comments | « include/core/SkAlpha.h ('k') | include/core/SkColorTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698