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

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

Issue 1532273002: Add field for internalFormat param to glTexImage to GrGLGpu::ConfigEntry. (Closed) Base URL: https://skia.googlesource.com/skia.git@nostorage
Patch Set: fix 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
« no previous file with comments | « no previous file | src/gpu/gl/GrGLGpu.cpp » ('j') | src/gpu/gl/GrGLGpu.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 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. 554 // This is usually the same as fExternalFormat except for kSRGBA on some GL contexts.
555 GrGLenum fExternalFormatForTexImage; 555 GrGLenum fExternalFormatForTexImage;
556 // Either the base or sized internal format depending on the GL and conf ig.
557 GrGLenum fInternalFormatTexImage;
556 558
557 // Index into GrGLCaps's list of stencil formats. Support is determined experimentally and 559 // Index into GrGLCaps's list of stencil formats. Support is determined experimentally and
558 // lazily. 560 // lazily.
559 int fStencilFormatIndex; 561 int fStencilFormatIndex;
560 enum { 562 enum {
561 // This indicates that a stencil format has not yet been determined for the config. 563 // This indicates that a stencil format has not yet been determined for the config.
562 kUnknown_StencilIndex = -1, 564 kUnknown_StencilIndex = -1,
563 // This indicates that there is no supported stencil format for the config. 565 // This indicates that there is no supported stencil format for the config.
564 kUnsupported_StencilFormatIndex = -2 566 kUnsupported_StencilFormatIndex = -2
565 }; 567 };
566 }; 568 };
567 569
568 ConfigEntry fConfigTable[kGrPixelConfigCnt]; 570 ConfigEntry fConfigTable[kGrPixelConfigCnt];
569 571
570 typedef GrGpu INHERITED; 572 typedef GrGpu INHERITED;
571 friend class GrGLPathRendering; // For accessing setTextureUnit. 573 friend class GrGLPathRendering; // For accessing setTextureUnit.
572 }; 574 };
573 575
574 #endif 576 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLGpu.cpp » ('j') | src/gpu/gl/GrGLGpu.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698