aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/ddl/GrDDLGpu.cpp
blob: 583b8b2735b7fb45487eae6c154ebe97b5c39a22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
 * Copyright 2017 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "GrDDLGpu.h"

#include "GrCaps.h"

sk_sp<GrGpu> GrDDLGpu::Make(GrContext* context, sk_sp<const GrCaps> caps) {
    return sk_sp<GrGpu>(new GrDDLGpu(context, std::move(caps)));
}


GrGpuRTCommandBuffer* GrDDLGpu::createCommandBuffer(
                                            GrRenderTarget* rt, GrSurfaceOrigin origin,
                                            const GrGpuRTCommandBuffer::LoadAndStoreInfo&,
                                            const GrGpuRTCommandBuffer::StencilLoadAndStoreInfo&) {
    SkASSERT(0);
    return nullptr;
}

GrGpuTextureCommandBuffer* GrDDLGpu::createCommandBuffer(GrTexture* texture,
                                                         GrSurfaceOrigin origin) {
    SkASSERT(0);
    return nullptr;
}

void GrDDLGpu::submitCommandBuffer(const GrGpuRTCommandBuffer* cmdBuffer) {
    SkASSERT(0);
}

GrDDLGpu::GrDDLGpu(GrContext* context, sk_sp<const GrCaps> caps)
        : INHERITED(context) {
    fCaps = caps;
}

sk_sp<GrTexture> GrDDLGpu::onCreateTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted,
                                           const GrMipLevel texels[], int mipLevelCount) {
    SkASSERT(0);
    return nullptr;
}

GrBuffer* GrDDLGpu::onCreateBuffer(size_t sizeInBytes, GrBufferType type,
                                   GrAccessPattern accessPattern, const void*) {
    SkASSERT(0);
    return nullptr;
}

GrStencilAttachment* GrDDLGpu::createStencilAttachmentForRenderTarget(const GrRenderTarget* rt,
                                                                      int width,
                                                                      int height) {
    SkASSERT(0);
    return nullptr;
}

GrBackendTexture GrDDLGpu::createTestingOnlyBackendTexture(void* pixels, int w, int h,
                                                           GrPixelConfig config, bool isRT,
                                                           GrMipMapped) {
    SkASSERT(0);
    return GrBackendTexture(); // invalid
}

bool GrDDLGpu::isTestingOnlyBackendTexture(const GrBackendTexture& tex) const {
    SkASSERT(0);
    return false;
}

void GrDDLGpu::deleteTestingOnlyBackendTexture(GrBackendTexture* tex, bool abandonTexture) {
    SkASSERT(0);
}