| Index: src/gpu/GrCommandBuilder.cpp
|
| diff --git a/src/gpu/GrCommandBuilder.cpp b/src/gpu/GrCommandBuilder.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..54f4a9eb7903f354927685e3cbbbf5d73d6d39be
|
| --- /dev/null
|
| +++ b/src/gpu/GrCommandBuilder.cpp
|
| @@ -0,0 +1,20 @@
|
| +/*
|
| + * 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(GrFoo* foo, GrGpu* gpu, bool reorder, GrRenderTarget* dst) {
|
| + if (reorder) {
|
| + return new GrReorderCommandBuilder(foo, gpu, dst);
|
| + } else {
|
| + return new GrInOrderCommandBuilder(foo, gpu, dst);
|
| + }
|
| +}
|
| +
|
|
|