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

Unified Diff: gm/drawbitmaprect.cpp

Issue 1744243002: Remove internal calls to SkImage::getTexture (Closed) Base URL: https://skia.googlesource.com/skia.git@budalias
Patch Set: Add getTexture() back to SkImage :( 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gm/image_pict.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/drawbitmaprect.cpp
diff --git a/gm/drawbitmaprect.cpp b/gm/drawbitmaprect.cpp
index d4fa141482bc81ad816625e5b7960e28d4f6dede..c90ac2eaa1474951fc7a320db4b50cda068a67ec 100644
--- a/gm/drawbitmaprect.cpp
+++ b/gm/drawbitmaprect.cpp
@@ -11,6 +11,7 @@
#include "SkColorPriv.h"
#include "SkGradientShader.h"
#include "SkImage.h"
+#include "SkImage_Base.h"
#include "SkShader.h"
#include "SkSurface.h"
@@ -85,9 +86,8 @@ static SkImage* makebm(SkCanvas* origCanvas, SkBitmap* resultBM, int w, int h) {
SkBitmap tempBM;
#if SK_SUPPORT_GPU
- if (image->getTexture()) {
- GrWrapTextureInBitmap(image->getTexture(),
- image->width(), image->height(), image->isOpaque(), &tempBM);
+ if (GrTexture* texture = as_IB(image)->peekTexture()) {
+ GrWrapTextureInBitmap(texture, image->width(), image->height(), image->isOpaque(), &tempBM);
} else
#endif
{
« no previous file with comments | « no previous file | gm/image_pict.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698