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

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

Issue 359353003: add SK_API to config helpers so chrome can call them (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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 | « no previous file | no next file » | 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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 SkBitmap_DEFINED 8 #ifndef SkBitmap_DEFINED
9 #define SkBitmap_DEFINED 9 #define SkBitmap_DEFINED
10 10
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 SkASSERT((unsigned)x < (unsigned)this->width() && (unsigned)y < (unsigned)th is->height()); 897 SkASSERT((unsigned)x < (unsigned)this->width() && (unsigned)y < (unsigned)th is->height());
898 SkASSERT(fColorTable); 898 SkASSERT(fColorTable);
899 return (*fColorTable)[*((const uint8_t*)fPixels + y * fRowBytes + x)]; 899 return (*fColorTable)[*((const uint8_t*)fPixels + y * fRowBytes + x)];
900 } 900 }
901 901
902 #ifdef SK_SUPPORT_LEGACY_BITMAP_CONFIG 902 #ifdef SK_SUPPORT_LEGACY_BITMAP_CONFIG
903 /////////////////////////////////////////////////////////////////////////////// 903 ///////////////////////////////////////////////////////////////////////////////
904 // 904 //
905 // Helpers until we can fully deprecate SkBitmap::Config 905 // Helpers until we can fully deprecate SkBitmap::Config
906 // 906 //
907 extern SkBitmap::Config SkColorTypeToBitmapConfig(SkColorType); 907 SK_API SkBitmap::Config SkColorTypeToBitmapConfig(SkColorType);
908 extern SkColorType SkBitmapConfigToColorType(SkBitmap::Config); 908 SK_API SkColorType SkBitmapConfigToColorType(SkBitmap::Config);
909 #endif 909 #endif
910 910
911 #endif 911 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698