chromium/third_party/skia/src/pdf/SkPDFResourceDict.cpp

/*
 * Copyright 2013 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "src/pdf/SkPDFResourceDict.h"

#include "include/core/SkStream.h"
#include "include/core/SkString.h"
#include "include/private/base/SkAssert.h"
#include "src/pdf/SkPDFTypes.h"

#include <cstddef>
#include <utility>

// Verify that the values of enum ResourceType correspond to the expected values
// as defined in the arrays below.
// If these are failing, you may need to update the kResourceTypePrefixes
// and kResourceTypeNames arrays below.
static_assert;
static_assert;
static_assert;
static_assert;

// One extra character for the Prefix.
constexpr size_t kMaxResourceNameLength =;

// returns pointer just past end of what's written into `dst`.
static char* get_resource_name(char dst[kMaxResourceNameLength], SkPDFResourceType type, int key) {}

void SkPDFWriteResourceName(SkWStream* dst, SkPDFResourceType type, int key) {}

static const char* resource_name(SkPDFResourceType type) {}

static SkString resource(SkPDFResourceType type, int index) {}

static void add_subdict(const std::vector<SkPDFIndirectReference>& resourceList,
                        SkPDFResourceType type,
                        SkPDFDict* dst) {}

static std::unique_ptr<SkPDFArray> make_proc_set() {}

std::unique_ptr<SkPDFDict> SkPDFMakeResourceDict(
        const std::vector<SkPDFIndirectReference>& graphicStateResources,
        const std::vector<SkPDFIndirectReference>& shaderResources,
        const std::vector<SkPDFIndirectReference>& xObjectResources,
        const std::vector<SkPDFIndirectReference>& fontResources) {}