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

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

Issue 1810323002: Cache render targets that render to wrapped textures Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "GrGLPath.h" 9 #include "GrGLPath.h"
10 #include "GrGLPathRendering.h" 10 #include "GrGLPathRendering.h"
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 328
329 // FIXME: try to account for stroking, without rasterizing the strok e. 329 // FIXME: try to account for stroking, without rasterizing the strok e.
330 fBounds.outset(stroke->getWidth(), stroke->getWidth()); 330 fBounds.outset(stroke->getWidth(), stroke->getWidth());
331 } 331 }
332 } 332 }
333 333
334 this->registerWithCache(); 334 this->registerWithCache();
335 } 335 }
336 336
337 void GrGLPath::onRelease() { 337 void GrGLPath::onRelease() {
338 if (0 != fPathID && this->shouldFreeResources()) { 338 if (0 != fPathID) {
339 static_cast<GrGLGpu*>(this->getGpu())->glPathRendering()->deletePaths(fP athID, 1); 339 static_cast<GrGLGpu*>(this->getGpu())->glPathRendering()->deletePaths(fP athID, 1);
340 fPathID = 0; 340 fPathID = 0;
341 } 341 }
342 342
343 INHERITED::onRelease(); 343 INHERITED::onRelease();
344 } 344 }
345 345
346 void GrGLPath::onAbandon() { 346 void GrGLPath::onAbandon() {
347 fPathID = 0; 347 fPathID = 0;
348 348
349 INHERITED::onAbandon(); 349 INHERITED::onAbandon();
350 } 350 }
OLDNEW
« src/gpu/gl/GrGLGpu.cpp ('K') | « src/gpu/gl/GrGLPath.h ('k') | src/gpu/gl/GrGLPathRange.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698