blob: 655b915597070e98ae278086e8b2f138b39bf3e1 [file] [log] [blame]
Robert Phillipscb2e2352017-08-30 16:44:40 -04001/*
2 * Copyright 2017 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
Mike Kleinc0bd9f92019-04-23 12:05:21 -05008#include "src/gpu/gl/GrGLGpuCommandBuffer.h"
Robert Phillipscb2e2352017-08-30 16:44:40 -04009
Mike Kleinc0bd9f92019-04-23 12:05:21 -050010#include "src/gpu/GrContextPriv.h"
11#include "src/gpu/GrFixedClip.h"
12#include "src/gpu/GrRenderTargetPriv.h"
Robert Phillipscb2e2352017-08-30 16:44:40 -040013
Chris Dalton7b2c8552019-05-13 15:49:33 -060014void GrGLGpuRTCommandBuffer::set(
15 GrRenderTarget* rt, GrSurfaceOrigin origin, const LoadAndStoreInfo& colorInfo,
16 const StencilLoadAndStoreInfo& stencilInfo) {
Robert Phillips5b5d84c2018-08-09 15:12:18 -040017 SkASSERT(fGpu);
18 SkASSERT(!fRenderTarget);
Robert Phillips9da87e02019-02-04 13:26:26 -050019 SkASSERT(fGpu == rt->getContext()->priv().getGpu());
Robert Phillips5b5d84c2018-08-09 15:12:18 -040020
21 this->INHERITED::set(rt, origin);
22 fColorLoadAndStoreInfo = colorInfo;
23 fStencilLoadAndStoreInfo = stencilInfo;
24}