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

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: Cleanup the enum and remove comment 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') | src/gpu/GrDrawTarget.cpp » ('J')
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 are supported
624 */
625 enum GrCompressedFormat {
626 kUncompressed_GrCompressedFormat = -1,
627 kETC1_GrCompressedFormat = 0,
628
629 kLast_GrCompressedFormat = kETC1_GrCompressedFormat
630 };
631 static const size_t kCompressedFormatCount = kLast_GrCompressedFormat + 1;
632
633 /**
623 * This value translates to reseting all the context state for any backend. 634 * This value translates to reseting all the context state for any backend.
624 */ 635 */
625 static const uint32_t kAll_GrBackendState = 0xffffffff; 636 static const uint32_t kAll_GrBackendState = 0xffffffff;
626 637
627 /////////////////////////////////////////////////////////////////////////////// 638 ///////////////////////////////////////////////////////////////////////////////
628 639
629 #endif 640 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrDrawTarget.cpp » ('j') | src/gpu/GrDrawTarget.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698