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

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

Issue 292323003: Add compressed texture capabilities for GPU devices (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Report on other compressed formats Created 6 years, 7 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 | src/gpu/GrDrawTarget.cpp » ('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 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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 kStencil_GrGLBackendState = 1 << 6, 613 kStencil_GrGLBackendState = 1 << 6,
614 kPixelStore_GrGLBackendState = 1 << 7, 614 kPixelStore_GrGLBackendState = 1 << 7,
615 kProgram_GrGLBackendState = 1 << 8, 615 kProgram_GrGLBackendState = 1 << 8,
616 kFixedFunction_GrGLBackendState = 1 << 9, 616 kFixedFunction_GrGLBackendState = 1 << 9,
617 kMisc_GrGLBackendState = 1 << 10, 617 kMisc_GrGLBackendState = 1 << 10,
618 kPathRendering_GrGLBackendState = 1 << 11, 618 kPathRendering_GrGLBackendState = 1 << 11,
619 kALL_GrGLBackendState = 0xffff 619 kALL_GrGLBackendState = 0xffff
620 }; 620 };
621 621
622 /** 622 /**
623 * The compressed texture formats that may be supported by the renderer.
624 * Make sure to check for the required capabilities using
625 * GrDrawTargetCaps::compressedTextureSupport
626 */
627 enum GrCompressedFormat {
628 kETC1_GrCompressedFormat,
629 kETC2_GrCompressedFormat,
630 kDXT1_GrCompressedFormat,
631
632 kLast_GrCompressedFormat = kDXT1_GrCompressedFormat
633 };
634 static const int kGrCompressedFormatCount = kLast_GrCompressedFormat + 1;
635
636 /**
623 * This value translates to reseting all the context state for any backend. 637 * This value translates to reseting all the context state for any backend.
624 */ 638 */
625 static const uint32_t kAll_GrBackendState = 0xffffffff; 639 static const uint32_t kAll_GrBackendState = 0xffffffff;
626 640
627 /////////////////////////////////////////////////////////////////////////////// 641 ///////////////////////////////////////////////////////////////////////////////
628 642
629 #endif 643 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698