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

Side by Side Diff: src/image/SkImage.cpp

Issue 14646007: Adding public API method on SkImage for extracting the GPU texture handle. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « include/core/SkImage.h ('k') | src/image/SkImage_Base.h » ('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 "SkImage_Base.h" 8 #include "SkImage_Base.h"
9 #include "SkImagePriv.h" 9 #include "SkImagePriv.h"
10 #include "SkBitmap.h" 10 #include "SkBitmap.h"
(...skipping 13 matching lines...) Expand all
24 do { 24 do {
25 id = sk_atomic_inc(&gUniqueID) + 1; 25 id = sk_atomic_inc(&gUniqueID) + 1;
26 } while (0 == id); 26 } while (0 == id);
27 return id; 27 return id;
28 } 28 }
29 29
30 void SkImage::draw(SkCanvas* canvas, SkScalar x, SkScalar y, 30 void SkImage::draw(SkCanvas* canvas, SkScalar x, SkScalar y,
31 const SkPaint* paint) { 31 const SkPaint* paint) {
32 asIB(this)->onDraw(canvas, x, y, paint); 32 asIB(this)->onDraw(canvas, x, y, paint);
33 } 33 }
34
35 GrTexture* SkImage::getTexture() {
36 return asIB(this)->onGetTexture();
37 }
38
OLDNEW
« no previous file with comments | « include/core/SkImage.h ('k') | src/image/SkImage_Base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698