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

Side by Side Diff: src/gpu/GrSurface.cpp

Issue 1623653002: skia: Add support for CHROMIUM_image backed textures. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Comments from bsalomon, round four. Created 4 years, 10 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 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 #include "GrSurface.h" 8 #include "GrSurface.h"
9 #include "GrContext.h" 9 #include "GrContext.h"
10 #include "GrSurfacePriv.h" 10 #include "GrSurfacePriv.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 void GrSurface::onRelease() { 204 void GrSurface::onRelease() {
205 this->invokeReleaseProc(); 205 this->invokeReleaseProc();
206 this->INHERITED::onRelease(); 206 this->INHERITED::onRelease();
207 } 207 }
208 208
209 void GrSurface::onAbandon() { 209 void GrSurface::onAbandon() {
210 this->invokeReleaseProc(); 210 this->invokeReleaseProc();
211 this->INHERITED::onAbandon(); 211 this->INHERITED::onAbandon();
212 } 212 }
213
214 bool GrSurface::reuseable() const {
215 return fDesc.fTextureStorageAllocator.fAllocateTextureStorage == nullptr;
216 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698