blob: c88d60716abb24371f2f2087d1e5134281797ba2 [file] [log] [blame]
scroggo@google.com248647c2013-12-02 20:18:09 +00001/*
2 * Copyright 2013 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef SkPdfOps_DEFINED
9#define SkPdfOps_DEFINED
10
11// Signature for all the operations available in pdf.
scroggo@google.com36026de2013-12-02 22:34:45 +000012typedef SkPdfResult (*PdfOperatorRenderer)(SkPdfContext*, SkCanvas*, SkPdfTokenLooper*);
scroggo@google.com248647c2013-12-02 20:18:09 +000013
14// FIXME (scroggo): Make a cleaner interface for this, and avoid statics and globals.
15// Map of string to function pointer for all known draw operations.
16extern SkTDict<PdfOperatorRenderer> gPdfOps;
17
18#endif // SkPdfOps_DEFINED