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

#include "GrCommandBuilder.h"

#include "GrInOrderCommandBuilder.h"
#include "GrReorderCommandBuilder.h"

GrCommandBuilder* GrCommandBuilder::Create(GrGpu* gpu, bool reorder) {
    if (reorder) {
        return new GrReorderCommandBuilder;
    } else {
        return new GrInOrderCommandBuilder;
    }
}