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

Unified Diff: src/gpu/utils/GrUtils.h

Issue 73643005: Implement a benchmark for GrResourceCache (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: address review 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
Index: src/gpu/utils/GrUtils.h
diff --git a/src/gpu/utils/GrUtils.h b/src/gpu/utils/GrUtils.h
new file mode 100644
index 0000000000000000000000000000000000000000..e5a5696362f6f4aec98922a9c7a8f49aa7b8397c
--- /dev/null
+++ b/src/gpu/utils/GrUtils.h
@@ -0,0 +1,23 @@
+
+/*
+ * Copyright 2013 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+#ifndef GrUtils_DEFINED
+#define GrUtils_DEFINED
+
+#if SK_SUPPORT_GPU
+
+class GrContext;
+class SkCanvas;
+
+// Utility code that can be linked to tester applications.
+namespace GrUtils {
+
+GrContext* GetGr(/*very nearly const*/ SkCanvas*);
bsalomon 2013/11/19 14:40:47 Having a getGrContext() function on SkCanvas keeps
Kimmo Kinnunen 2013/11/20 07:15:37 Done.
+
+}
+#endif
+#endif
« bench/ChecksumBench.cpp ('K') | « gyp/gm.gyp ('k') | src/gpu/utils/GrUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698