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

Unified Diff: gm/gm.cpp

Issue 73643005: Implement a benchmark for GrResourceCache (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: address comments Created 7 years, 1 month 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 | « gm/gm.h ('k') | gm/image.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/gm.cpp
diff --git a/gm/gm.cpp b/gm/gm.cpp
index 9da1a17159a65146a7749357549f871f2c530175..29d02d150a73e4ff88fb914b03f433de735f3331 100644
--- a/gm/gm.cpp
+++ b/gm/gm.cpp
@@ -63,18 +63,5 @@ void GM::drawSizeBounds(SkCanvas* canvas, SkColor color) {
canvas->drawRect(r, paint);
}
-#if SK_SUPPORT_GPU
-// canvas could almost be a const&, but accessRenderTarget isn't const.
-/*static*/ GrContext* GM::GetGr(SkCanvas* canvas) {
- SkASSERT(NULL != canvas);
- SkBaseDevice* device = canvas->getTopDevice();
- GrRenderTarget* renderTarget = device->accessRenderTarget();
- if (NULL != renderTarget) {
- return renderTarget->getContext();
- }
- return NULL;
-}
-#endif
-
// need to explicitly declare this, or we get some weird infinite loop llist
template GMRegistry* SkTRegistry<GM*(*)(void*)>::gHead;
« no previous file with comments | « gm/gm.h ('k') | gm/image.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698