blob: ed4c6259a6a7e98f2ea6433e60648f325d3de8b4 [file] [log] [blame]
Brian Salomon58389b92018-03-07 13:01:25 -05001/*
2 * Copyright 2018 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 ProxyUtils_DEFINED
9#define ProxyUtils_DEFINED
10
Mike Kleinc0bd9f92019-04-23 12:05:21 -050011#include "include/private/GrTypesPriv.h"
Brian Salomon4eda7102019-10-21 15:04:52 -040012#include "src/gpu/GrImageInfo.h"
Greg Danielf91aeb22019-06-18 09:58:02 -040013#include "src/gpu/GrTextureProxy.h"
Brian Salomon58389b92018-03-07 13:01:25 -050014
15namespace sk_gpu_test {
16
17/** Makes a texture proxy containing the passed in color data. */
Brian Salomon4eda7102019-10-21 15:04:52 -040018sk_sp<GrTextureProxy> MakeTextureProxyFromData(GrContext*,
19 GrRenderable,
20 GrSurfaceOrigin,
21 const GrImageInfo&,
22 const void* data,
23 size_t rowBytes);
Brian Salomon58389b92018-03-07 13:01:25 -050024
25} // namespace sk_gpu_test
26
27#endif