Flutter Engine
The Flutter Engine
SkSurfacePriv.h
Go to the documentation of this file.
1/*
2 * Copyright 2014 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 SkSurfacePriv_DEFINED
9#define SkSurfacePriv_DEFINED
10
12
13struct SkImageInfo;
14
16 return props ? *props : SkSurfaceProps();
17}
18
19constexpr size_t kIgnoreRowBytesValue = static_cast<size_t>(~0);
20
22
23#endif
static SkSurfaceProps SkSurfacePropsCopyOrDefault(const SkSurfaceProps *props)
Definition: SkSurfacePriv.h:15
bool SkSurfaceValidateRasterInfo(const SkImageInfo &, size_t rb=kIgnoreRowBytesValue)
constexpr size_t kIgnoreRowBytesValue
Definition: SkSurfacePriv.h:19