blob: aecc2c17050bbf6f9bc350e75e728eabe1c2bcfa [file] [log] [blame]
egdaniel384181c2015-03-26 09:09:41 -07001/*
2 * Copyright 2015 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 GrGpuFactory_DEFINED
9#define GrGpuFactory_DEFINED
10
11#include "GrTypes.h"
12
13class GrGpu;
14class GrContext;
bsalomon682c2692015-05-22 14:01:46 -070015struct GrContextOptions;
egdaniel384181c2015-03-26 09:09:41 -070016
bsalomon682c2692015-05-22 14:01:46 -070017typedef GrGpu* (*CreateGpuProc)(GrBackendContext, const GrContextOptions& options, GrContext*);
egdaniel384181c2015-03-26 09:09:41 -070018
19class GrGpuFactoryRegistrar {
20public:
21 GrGpuFactoryRegistrar(int i, CreateGpuProc proc);
22};
23
24#endif