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

Side by Side Diff: include/gpu/GrTypes.h

Issue 13121002: Make GrGLShaderBuilder::TextureSampler extract only required info from GrTextureAccess. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698