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

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

Issue 1161063003: Revert "Revert of Move copy-surface-as-draw fallback to GrGLGpu. (patchset #12 id:220001 of https:/… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 5 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 | « src/gpu/gl/GrGLCaps.h ('k') | src/gpu/gl/GrGLGpu.h » ('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 * 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 10
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction; 911 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction;
912 fFBFetchColorName = NULL; 912 fFBFetchColorName = NULL;
913 fFBFetchExtensionString = NULL; 913 fFBFetchExtensionString = NULL;
914 this->init(ctxInfo, gli, glCaps); 914 this->init(ctxInfo, gli, glCaps);
915 this->applyOptionsOverrides(options); 915 this->applyOptionsOverrides(options);
916 } 916 }
917 917
918 void GrGLSLCaps::init(const GrGLContextInfo& ctxInfo, 918 void GrGLSLCaps::init(const GrGLContextInfo& ctxInfo,
919 const GrGLInterface* gli, 919 const GrGLInterface* gli,
920 const GrGLCaps& glCaps) { 920 const GrGLCaps& glCaps) {
921 fGLSLGeneration = ctxInfo.glslGeneration();
921 GrGLStandard standard = ctxInfo.standard(); 922 GrGLStandard standard = ctxInfo.standard();
922 GrGLVersion version = ctxInfo.version(); 923 GrGLVersion version = ctxInfo.version();
923 924
924 /************************************************************************** 925 /**************************************************************************
925 * Caps specific to GrGLSLCaps 926 * Caps specific to GrGLSLCaps
926 **************************************************************************/ 927 **************************************************************************/
927 928
928 if (kGLES_GrGLStandard == standard) { 929 if (kGLES_GrGLStandard == standard) {
929 if (ctxInfo.hasExtension("GL_EXT_shader_framebuffer_fetch")) { 930 if (ctxInfo.hasExtension("GL_EXT_shader_framebuffer_fetch")) {
930 fFBFetchNeedsCustomOutput = (version >= GR_GL_VER(3, 0)); 931 fFBFetchNeedsCustomOutput = (version >= GR_GL_VER(3, 0));
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 if (fGeometryShaderSupport) { 1115 if (fGeometryShaderSupport) {
1115 for (int p = 0; p < kGrSLPrecisionCount; ++p) { 1116 for (int p = 0; p < kGrSLPrecisionCount; ++p) {
1116 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert ex_GrShaderType][p]; 1117 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert ex_GrShaderType][p];
1117 } 1118 }
1118 } 1119 }
1119 } 1120 }
1120 1121
1121 1122
1122 1123
1123 1124
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.h ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698