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

Side by Side Diff: src/gpu/gl/GrGLGpu.h

Issue 1531343002: Add fExternalFormatForTexImage to GrGLGpu::ConfigEntry. Use it in GrGLGpu::uploadTexData. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update comment Created 5 years 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
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrGLGpu_DEFINED 8 #ifndef GrGLGpu_DEFINED
9 #define GrGLGpu_DEFINED 9 #define GrGLGpu_DEFINED
10 10
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 // Default constructor inits to known bad GL enum values. 543 // Default constructor inits to known bad GL enum values.
544 ConfigEntry() { 544 ConfigEntry() {
545 memset(this, 0xAB, sizeof(ConfigEntry)); 545 memset(this, 0xAB, sizeof(ConfigEntry));
546 fStencilFormatIndex = kUnknown_StencilIndex; 546 fStencilFormatIndex = kUnknown_StencilIndex;
547 } 547 }
548 GrGLenum fBaseInternalFormat; 548 GrGLenum fBaseInternalFormat;
549 GrGLenum fSizedInternalFormat; 549 GrGLenum fSizedInternalFormat;
550 GrGLenum fExternalFormat; 550 GrGLenum fExternalFormat;
551 GrGLenum fExternalType; 551 GrGLenum fExternalType;
552 552
553 // The <format> parameter to use for glTexImage and glTexSubImage.
554 // This is usually the same as fExternalFormat except for kSRGBA on some GL contexts.
555 GrGLenum fExternalFormatForTexImage;
556
553 // Index into GrGLCaps's list of stencil formats. Support is determined experimentally and 557 // Index into GrGLCaps's list of stencil formats. Support is determined experimentally and
554 // lazily. 558 // lazily.
555 int fStencilFormatIndex; 559 int fStencilFormatIndex;
556 enum { 560 enum {
557 // This indicates that a stencil format has not yet been determined for the config. 561 // This indicates that a stencil format has not yet been determined for the config.
558 kUnknown_StencilIndex = -1, 562 kUnknown_StencilIndex = -1,
559 // This indicates that there is no supported stencil format for the config. 563 // This indicates that there is no supported stencil format for the config.
560 kUnsupported_StencilFormatIndex = -2 564 kUnsupported_StencilFormatIndex = -2
561 }; 565 };
562 }; 566 };
563 567
564 ConfigEntry fConfigTable[kGrPixelConfigCnt]; 568 ConfigEntry fConfigTable[kGrPixelConfigCnt];
565 569
566 typedef GrGpu INHERITED; 570 typedef GrGpu INHERITED;
567 friend class GrGLPathRendering; // For accessing setTextureUnit. 571 friend class GrGLPathRendering; // For accessing setTextureUnit.
568 }; 572 };
569 573
570 #endif 574 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | src/gpu/gl/GrGLGpu.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698