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

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

Issue 277323002: Make GrGLConfigConversionEffect work for Imagination and some other GPUs. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Only affect PowerVR Rogue Hood 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
« src/gpu/gl/GrGLShaderBuilder.cpp ('K') | « src/gpu/gl/GrGLUtil.h ('k') | 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 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 } 222 }
223 return kOther_GrGLVendor; 223 return kOther_GrGLVendor;
224 } 224 }
225 225
226 GrGLRenderer GrGLGetRendererFromString(const char* rendererString) { 226 GrGLRenderer GrGLGetRendererFromString(const char* rendererString) {
227 if (NULL != rendererString) { 227 if (NULL != rendererString) {
228 if (0 == strcmp(rendererString, "NVIDIA Tegra 3")) { 228 if (0 == strcmp(rendererString, "NVIDIA Tegra 3")) {
229 return kTegra3_GrGLRenderer; 229 return kTegra3_GrGLRenderer;
230 } else if (0 == strcmp(rendererString, "NVIDIA Tegra")) { 230 } else if (0 == strcmp(rendererString, "NVIDIA Tegra")) {
231 return kTegra2_GrGLRenderer; 231 return kTegra2_GrGLRenderer;
232 } else if (0 == strcmp(rendererString, "PowerVR Rogue Hood")) {
233 return kPVRRogueHood_GrGLRenderer;
232 } 234 }
233 } 235 }
234 return kOther_GrGLRenderer; 236 return kOther_GrGLRenderer;
235 } 237 }
236 238
237 GrGLVersion GrGLGetVersion(const GrGLInterface* gl) { 239 GrGLVersion GrGLGetVersion(const GrGLInterface* gl) {
238 const GrGLubyte* v; 240 const GrGLubyte* v;
239 GR_GL_CALL_RET(gl, v, GetString(GR_GL_VERSION)); 241 GR_GL_CALL_RET(gl, v, GetString(GR_GL_VERSION));
240 return GrGLGetVersionFromString((const char*) v); 242 return GrGLGetVersionFromString((const char*) v);
241 } 243 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 dest[9] = 0; 295 dest[9] = 0;
294 dest[10] = 1; 296 dest[10] = 1;
295 dest[11] = 0; 297 dest[11] = 0;
296 298
297 // Col 3 299 // Col 3
298 dest[12] = SkScalarToFloat(src[SkMatrix::kMTransX]); 300 dest[12] = SkScalarToFloat(src[SkMatrix::kMTransX]);
299 dest[13] = SkScalarToFloat(src[SkMatrix::kMTransY]); 301 dest[13] = SkScalarToFloat(src[SkMatrix::kMTransY]);
300 dest[14] = 0; 302 dest[14] = 0;
301 dest[15] = SkScalarToFloat(src[SkMatrix::kMPersp2]); 303 dest[15] = SkScalarToFloat(src[SkMatrix::kMPersp2]);
302 } 304 }
OLDNEW
« src/gpu/gl/GrGLShaderBuilder.cpp ('K') | « src/gpu/gl/GrGLUtil.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698