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

Side by Side Diff: src/gpu/gl/GrGLCaps.cpp

Issue 320273003: Make sure to copy the LATC alias when copying the GrGLCaps (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 * Copyright 2012 Google Inc. 2 * Copyright 2012 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 8
9 #include "GrGLCaps.h" 9 #include "GrGLCaps.h"
10 #include "GrGLContext.h" 10 #include "GrGLContext.h"
11 #include "SkTSearch.h" 11 #include "SkTSearch.h"
12 #include "SkTSort.h" 12 #include "SkTSort.h"
13 13
14 GrGLCaps::GrGLCaps() { 14 GrGLCaps::GrGLCaps() {
15 this->reset(); 15 this->reset();
16 } 16 }
17 17
18 void GrGLCaps::reset() { 18 void GrGLCaps::reset() {
19 INHERITED::reset(); 19 INHERITED::reset();
20 20
21 fVerifiedColorConfigs.reset(); 21 fVerifiedColorConfigs.reset();
22 fStencilFormats.reset(); 22 fStencilFormats.reset();
23 fStencilVerifiedColorConfigs.reset(); 23 fStencilVerifiedColorConfigs.reset();
24 fMSFBOType = kNone_MSFBOType; 24 fMSFBOType = kNone_MSFBOType;
25 fFBFetchType = kNone_FBFetchType; 25 fFBFetchType = kNone_FBFetchType;
26 fInvalidateFBType = kNone_InvalidateFBType; 26 fInvalidateFBType = kNone_InvalidateFBType;
27 fLATCAlias = kLATC_LATCAlias;
27 fMapBufferType = kNone_MapBufferType; 28 fMapBufferType = kNone_MapBufferType;
28 fMaxFragmentUniformVectors = 0; 29 fMaxFragmentUniformVectors = 0;
29 fMaxVertexAttributes = 0; 30 fMaxVertexAttributes = 0;
30 fMaxFragmentTextureUnits = 0; 31 fMaxFragmentTextureUnits = 0;
31 fMaxFixedFunctionTextureCoords = 0; 32 fMaxFixedFunctionTextureCoords = 0;
32 fRGBA8RenderbufferSupport = false; 33 fRGBA8RenderbufferSupport = false;
33 fBGRAIsInternalFormat = false; 34 fBGRAIsInternalFormat = false;
34 fTextureSwizzleSupport = false; 35 fTextureSwizzleSupport = false;
35 fUnpackRowLengthSupport = false; 36 fUnpackRowLengthSupport = false;
36 fUnpackFlipYSupport = false; 37 fUnpackFlipYSupport = false;
(...skipping 14 matching lines...) Expand all
51 52
52 GrGLCaps::GrGLCaps(const GrGLCaps& caps) : GrDrawTargetCaps() { 53 GrGLCaps::GrGLCaps(const GrGLCaps& caps) : GrDrawTargetCaps() {
53 *this = caps; 54 *this = caps;
54 } 55 }
55 56
56 GrGLCaps& GrGLCaps::operator= (const GrGLCaps& caps) { 57 GrGLCaps& GrGLCaps::operator= (const GrGLCaps& caps) {
57 INHERITED::operator=(caps); 58 INHERITED::operator=(caps);
58 fVerifiedColorConfigs = caps.fVerifiedColorConfigs; 59 fVerifiedColorConfigs = caps.fVerifiedColorConfigs;
59 fStencilFormats = caps.fStencilFormats; 60 fStencilFormats = caps.fStencilFormats;
60 fStencilVerifiedColorConfigs = caps.fStencilVerifiedColorConfigs; 61 fStencilVerifiedColorConfigs = caps.fStencilVerifiedColorConfigs;
62 fLATCAlias = caps.fLATCAlias;
61 fMaxFragmentUniformVectors = caps.fMaxFragmentUniformVectors; 63 fMaxFragmentUniformVectors = caps.fMaxFragmentUniformVectors;
62 fMaxVertexAttributes = caps.fMaxVertexAttributes; 64 fMaxVertexAttributes = caps.fMaxVertexAttributes;
63 fMaxFragmentTextureUnits = caps.fMaxFragmentTextureUnits; 65 fMaxFragmentTextureUnits = caps.fMaxFragmentTextureUnits;
64 fMaxFixedFunctionTextureCoords = caps.fMaxFixedFunctionTextureCoords; 66 fMaxFixedFunctionTextureCoords = caps.fMaxFixedFunctionTextureCoords;
65 fMSFBOType = caps.fMSFBOType; 67 fMSFBOType = caps.fMSFBOType;
66 fFBFetchType = caps.fFBFetchType; 68 fFBFetchType = caps.fFBFetchType;
67 fInvalidateFBType = caps.fInvalidateFBType; 69 fInvalidateFBType = caps.fInvalidateFBType;
68 fMapBufferType = caps.fMapBufferType; 70 fMapBufferType = caps.fMapBufferType;
69 fRGBA8RenderbufferSupport = caps.fRGBA8RenderbufferSupport; 71 fRGBA8RenderbufferSupport = caps.fRGBA8RenderbufferSupport;
70 fBGRAIsInternalFormat = caps.fBGRAIsInternalFormat; 72 fBGRAIsInternalFormat = caps.fBGRAIsInternalFormat;
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); 783 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO"));
782 r.appendf("Fragment coord conventions support: %s\n", 784 r.appendf("Fragment coord conventions support: %s\n",
783 (fFragCoordsConventionSupport ? "YES": "NO")); 785 (fFragCoordsConventionSupport ? "YES": "NO"));
784 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO")); 786 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO"));
785 r.appendf("Use non-VBO for dynamic data: %s\n", 787 r.appendf("Use non-VBO for dynamic data: %s\n",
786 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); 788 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO"));
787 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO ")); 789 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO "));
788 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO")); 790 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO"));
789 return r; 791 return r;
790 } 792 }
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