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

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

Issue 481443002: Add GrResourceCache2. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove removeHead Created 6 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 #include "gl/GrGLPathRendering.h" 8 #include "gl/GrGLPathRendering.h"
9 #include "gl/GrGLInterface.h" 9 #include "gl/GrGLInterface.h"
10 #include "gl/GrGLNameAllocator.h" 10 #include "gl/GrGLNameAllocator.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 memset(&fCaps, 0, sizeof(fCaps)); 66 memset(&fCaps, 0, sizeof(fCaps));
67 } 67 }
68 68
69 GrGLPathRendering::~GrGLPathRendering() { 69 GrGLPathRendering::~GrGLPathRendering() {
70 } 70 }
71 71
72 void GrGLPathRendering::abandonGpuResources() { 72 void GrGLPathRendering::abandonGpuResources() {
73 fPathNameAllocator.reset(NULL); 73 fPathNameAllocator.reset(NULL);
74 } 74 }
75 75
76
77 // NV_path_rendering 76 // NV_path_rendering
78 GrGLuint GrGLPathRendering::genPaths(GrGLsizei range) { 77 GrGLuint GrGLPathRendering::genPaths(GrGLsizei range) {
79 if (range > 1) { 78 if (range > 1) {
80 GrGLuint name; 79 GrGLuint name;
81 GL_CALL_RET(name, GenPaths(range)); 80 GL_CALL_RET(name, GenPaths(range));
82 return name; 81 return name;
83 } 82 }
84 83
85 if (NULL == fPathNameAllocator.get()) { 84 if (NULL == fPathNameAllocator.get()) {
86 static const int range = 65536; 85 static const int range = 65536;
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 mask, coverMode, transformType, transformValues)); 271 mask, coverMode, transformType, transformValues));
273 } 272 }
274 273
275 274
276 // NV_path_rendering v1.3 275 // NV_path_rendering v1.3
277 GrGLvoid GrGLPathRenderingV13::programPathFragmentInputGen( 276 GrGLvoid GrGLPathRenderingV13::programPathFragmentInputGen(
278 GrGLuint program, GrGLint location, GrGLenum genMode, 277 GrGLuint program, GrGLint location, GrGLenum genMode,
279 GrGLint components, const GrGLfloat *coeffs) { 278 GrGLint components, const GrGLfloat *coeffs) {
280 GL_CALL(ProgramPathFragmentInputGen(program, location, genMode, components, coeffs)); 279 GL_CALL(ProgramPathFragmentInputGen(program, location, genMode, components, coeffs));
281 } 280 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698