Robert Phillips | cb2e235 | 2017-08-30 16:44:40 -0400 | [diff] [blame] | 1 | /* |
| 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 Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 8 | #include "src/gpu/gl/GrGLGpuCommandBuffer.h" |
Robert Phillips | cb2e235 | 2017-08-30 16:44:40 -0400 | [diff] [blame] | 9 | |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 10 | #include "src/gpu/GrContextPriv.h" |
| 11 | #include "src/gpu/GrFixedClip.h" |
| 12 | #include "src/gpu/GrRenderTargetPriv.h" |
Robert Phillips | cb2e235 | 2017-08-30 16:44:40 -0400 | [diff] [blame] | 13 | |
Chris Dalton | 7b2c855 | 2019-05-13 15:49:33 -0600 | [diff] [blame] | 14 | void GrGLGpuRTCommandBuffer::set( |
| 15 | GrRenderTarget* rt, GrSurfaceOrigin origin, const LoadAndStoreInfo& colorInfo, |
| 16 | const StencilLoadAndStoreInfo& stencilInfo) { |
Robert Phillips | 5b5d84c | 2018-08-09 15:12:18 -0400 | [diff] [blame] | 17 | SkASSERT(fGpu); |
| 18 | SkASSERT(!fRenderTarget); |
Robert Phillips | 9da87e0 | 2019-02-04 13:26:26 -0500 | [diff] [blame] | 19 | SkASSERT(fGpu == rt->getContext()->priv().getGpu()); |
Robert Phillips | 5b5d84c | 2018-08-09 15:12:18 -0400 | [diff] [blame] | 20 | |
| 21 | this->INHERITED::set(rt, origin); |
| 22 | fColorLoadAndStoreInfo = colorInfo; |
| 23 | fStencilLoadAndStoreInfo = stencilInfo; |
| 24 | } |