| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 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 | 9 |
| 10 | 10 |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 kRGBA_4444_GrPixelConfig, | 277 kRGBA_4444_GrPixelConfig, |
| 278 /** | 278 /** |
| 279 * Premultiplied. Byte order is r,g,b,a. | 279 * Premultiplied. Byte order is r,g,b,a. |
| 280 */ | 280 */ |
| 281 kRGBA_8888_GrPixelConfig, | 281 kRGBA_8888_GrPixelConfig, |
| 282 /** | 282 /** |
| 283 * Premultiplied. Byte order is b,g,r,a. | 283 * Premultiplied. Byte order is b,g,r,a. |
| 284 */ | 284 */ |
| 285 kBGRA_8888_GrPixelConfig, | 285 kBGRA_8888_GrPixelConfig, |
| 286 | 286 |
| 287 kGrPixelConfigCount | 287 kLast_GrPixelConfig = kBGRA_8888_GrPixelConfig |
| 288 }; | 288 }; |
| 289 static const int kGrPixelConfigCnt = kLast_GrPixelConfig + 1; |
| 289 | 290 |
| 290 // Aliases for pixel configs that match skia's byte order. | 291 // Aliases for pixel configs that match skia's byte order. |
| 291 #ifndef SK_CPU_LENDIAN | 292 #ifndef SK_CPU_LENDIAN |
| 292 #error "Skia gpu currently assumes little endian" | 293 #error "Skia gpu currently assumes little endian" |
| 293 #endif | 294 #endif |
| 294 #if SK_PMCOLOR_BYTE_ORDER(B,G,R,A) | 295 #if SK_PMCOLOR_BYTE_ORDER(B,G,R,A) |
| 295 static const GrPixelConfig kSkia8888_GrPixelConfig = kBGRA_8888_GrPixelConfi
g; | 296 static const GrPixelConfig kSkia8888_GrPixelConfig = kBGRA_8888_GrPixelConfi
g; |
| 296 #elif SK_PMCOLOR_BYTE_ORDER(R,G,B,A) | 297 #elif SK_PMCOLOR_BYTE_ORDER(R,G,B,A) |
| 297 static const GrPixelConfig kSkia8888_GrPixelConfig = kRGBA_8888_GrPixelConfi
g; | 298 static const GrPixelConfig kSkia8888_GrPixelConfig = kRGBA_8888_GrPixelConfi
g; |
| 298 #else | 299 #else |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 /** | 624 /** |
| 624 * Handle to the 3D API object. | 625 * Handle to the 3D API object. |
| 625 * OpenGL: FBO ID | 626 * OpenGL: FBO ID |
| 626 */ | 627 */ |
| 627 GrBackendObject fRenderTargetHandle; | 628 GrBackendObject fRenderTargetHandle; |
| 628 }; | 629 }; |
| 629 | 630 |
| 630 /////////////////////////////////////////////////////////////////////////////// | 631 /////////////////////////////////////////////////////////////////////////////// |
| 631 | 632 |
| 632 #endif | 633 #endif |
| OLD | NEW |