Chromium Code Reviews| 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 |