Coverage Report

Created: 2021-08-22 09:07

/src/skia/src/gpu/ops/GrDrawableOp.cpp
Line
Count
Source (jump to first uncovered line)
1
/*
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
#include "src/gpu/ops/GrDrawableOp.h"
9
10
#include "include/core/SkDrawable.h"
11
#include "include/gpu/GrRecordingContext.h"
12
#include "src/gpu/GrMemoryPool.h"
13
#include "src/gpu/GrOpFlushState.h"
14
#include "src/gpu/GrOpsRenderPass.h"
15
#include "src/gpu/GrRecordingContextPriv.h"
16
17
GrOp::Owner GrDrawableOp::Make(
18
        GrRecordingContext* context, std::unique_ptr<SkDrawable::GpuDrawHandler> drawable,
19
0
        const SkRect& bounds) {
20
0
    return GrOp::Make<GrDrawableOp>(context, std::move(drawable), bounds);
21
0
}
22
23
GrDrawableOp::GrDrawableOp(std::unique_ptr<SkDrawable::GpuDrawHandler> drawable,
24
                           const SkRect& bounds)
25
        : INHERITED(ClassID())
26
0
        , fDrawable(std::move(drawable)) {
27
0
    this->setBounds(bounds, HasAABloat::kNo, IsHairline::kNo);
28
0
}
29
30
0
void GrDrawableOp::onExecute(GrOpFlushState* state, const SkRect& chainBounds) {
31
0
    SkASSERT(state->opsRenderPass());
32
0
    state->opsRenderPass()->executeDrawable(std::move(fDrawable));
33
0
}
Unexecuted instantiation: GrDrawableOp::onExecute(GrOpFlushState*, SkRect const&)
Unexecuted instantiation: GrDrawableOp::onExecute(GrOpFlushState*, SkRect const&)