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

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

Issue 398183002: Fix alpha textures in NV ES3 contexts on Windows (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: suppress warning Created 6 years, 5 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/GrGLUtil.h ('k') | src/gpu/gl/GrGpuGL.cpp » ('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 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 8
9 #include "GrGLUtil.h" 9 #include "GrGLUtil.h"
10 #include "SkMatrix.h" 10 #include "SkMatrix.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 } 212 }
213 if (0 == strcmp(vendorString, "Imagination Technologies")) { 213 if (0 == strcmp(vendorString, "Imagination Technologies")) {
214 return kImagination_GrGLVendor; 214 return kImagination_GrGLVendor;
215 } 215 }
216 if (0 == strncmp(vendorString, "Intel ", 6) || 0 == strcmp(vendorString, "Intel")) { 216 if (0 == strncmp(vendorString, "Intel ", 6) || 0 == strcmp(vendorString, "Intel")) {
217 return kIntel_GrGLVendor; 217 return kIntel_GrGLVendor;
218 } 218 }
219 if (0 == strcmp(vendorString, "Qualcomm")) { 219 if (0 == strcmp(vendorString, "Qualcomm")) {
220 return kQualcomm_GrGLVendor; 220 return kQualcomm_GrGLVendor;
221 } 221 }
222 if (0 == strcmp(vendorString, "NVIDIA Corporation")) {
223 return kNVIDIA_GrGLVendor;
224 }
222 } 225 }
223 return kOther_GrGLVendor; 226 return kOther_GrGLVendor;
224 } 227 }
225 228
226 GrGLRenderer GrGLGetRendererFromString(const char* rendererString) { 229 GrGLRenderer GrGLGetRendererFromString(const char* rendererString) {
227 if (NULL != rendererString) { 230 if (NULL != rendererString) {
228 if (0 == strcmp(rendererString, "NVIDIA Tegra 3")) { 231 if (0 == strcmp(rendererString, "NVIDIA Tegra 3")) {
229 return kTegra3_GrGLRenderer; 232 return kTegra3_GrGLRenderer;
230 } else if (0 == strcmp(rendererString, "NVIDIA Tegra")) { 233 } else if (0 == strcmp(rendererString, "NVIDIA Tegra")) {
231 return kTegra2_GrGLRenderer; 234 return kTegra2_GrGLRenderer;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 dest[9] = 0; 296 dest[9] = 0;
294 dest[10] = 1; 297 dest[10] = 1;
295 dest[11] = 0; 298 dest[11] = 0;
296 299
297 // Col 3 300 // Col 3
298 dest[12] = SkScalarToFloat(src[SkMatrix::kMTransX]); 301 dest[12] = SkScalarToFloat(src[SkMatrix::kMTransX]);
299 dest[13] = SkScalarToFloat(src[SkMatrix::kMTransY]); 302 dest[13] = SkScalarToFloat(src[SkMatrix::kMTransY]);
300 dest[14] = 0; 303 dest[14] = 0;
301 dest[15] = SkScalarToFloat(src[SkMatrix::kMPersp2]); 304 dest[15] = SkScalarToFloat(src[SkMatrix::kMPersp2]);
302 } 305 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLUtil.h ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698