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

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

Issue 323853003: Add LATC to alpha only pixel config (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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 /* 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 case kETC1_GrPixelConfig: 356 case kETC1_GrPixelConfig:
357 case kRGB_565_GrPixelConfig: 357 case kRGB_565_GrPixelConfig:
358 return true; 358 return true;
359 default: 359 default:
360 return false; 360 return false;
361 } 361 }
362 } 362 }
363 363
364 static inline bool GrPixelConfigIsAlphaOnly(GrPixelConfig config) { 364 static inline bool GrPixelConfigIsAlphaOnly(GrPixelConfig config) {
365 switch (config) { 365 switch (config) {
366 case kLATC_GrPixelConfig:
366 case kAlpha_8_GrPixelConfig: 367 case kAlpha_8_GrPixelConfig:
367 return true; 368 return true;
368 default: 369 default:
369 return false; 370 return false;
370 } 371 }
371 } 372 }
372 373
373 /** 374 /**
374 * Optional bitfield flags that can be passed to createTexture. 375 * Optional bitfield flags that can be passed to createTexture.
375 */ 376 */
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 } 655 }
655 656
656 /** 657 /**
657 * This value translates to reseting all the context state for any backend. 658 * This value translates to reseting all the context state for any backend.
658 */ 659 */
659 static const uint32_t kAll_GrBackendState = 0xffffffff; 660 static const uint32_t kAll_GrBackendState = 0xffffffff;
660 661
661 /////////////////////////////////////////////////////////////////////////////// 662 ///////////////////////////////////////////////////////////////////////////////
662 663
663 #endif 664 #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