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

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

Issue 1169553003: add callbacks to Images that wrap client-provided content (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: privatize Created 5 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
« no previous file with comments | « include/gpu/GrSurface.h ('k') | src/image/SkImage.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 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 "GrSurfacePriv.h" 9 #include "GrSurfacePriv.h"
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 const GrTexture* thisTex = this->asTexture(); 118 const GrTexture* thisTex = this->asTexture();
119 if (thisTex && thisTex->internalHasPendingIO()) { 119 if (thisTex && thisTex->internalHasPendingIO()) {
120 return true; 120 return true;
121 } 121 }
122 const GrRenderTarget* thisRT = this->asRenderTarget(); 122 const GrRenderTarget* thisRT = this->asRenderTarget();
123 if (thisRT && thisRT->internalHasPendingIO()) { 123 if (thisRT && thisRT->internalHasPendingIO()) {
124 return true; 124 return true;
125 } 125 }
126 return false; 126 return false;
127 } 127 }
128
129 void GrSurface::onRelease() {
130 this->invokeReleaseProc();
131 this->INHERITED::onRelease();
132 }
133
134 void GrSurface::onAbandon() {
135 this->invokeReleaseProc();
136 this->INHERITED::onAbandon();
137 }
OLDNEW
« no previous file with comments | « include/gpu/GrSurface.h ('k') | src/image/SkImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698