aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpuFactory.h
blob: aecc2c17050bbf6f9bc350e75e728eabe1c2bcfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright 2015 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef GrGpuFactory_DEFINED
#define GrGpuFactory_DEFINED

#include "GrTypes.h"

class GrGpu;
class GrContext;
struct GrContextOptions;

typedef GrGpu* (*CreateGpuProc)(GrBackendContext, const GrContextOptions& options, GrContext*);

class GrGpuFactoryRegistrar {
public:
    GrGpuFactoryRegistrar(int i, CreateGpuProc proc);
};

#endif