d358cbebd4
This CL adds a new type GrDstSampleType to say how we will sample the dst. We add tracking of the GrDstSampleType in the recording of GrOps and then during execution passing the information along to the GrPipeline. In general the tracking of GrDstSampleType is a global state of a GrOpsTask so it is kept separate fro the DstProxyView which is more specific to a single Op on the GrOpsTask. Bug: skia:10409 Change-Id: Ie843c31f2e48a887daf96cee99ed159b196cb545 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/315645 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Michael Ludwig <michaelludwig@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
46 lines
1.7 KiB
C++
46 lines
1.7 KiB
C++
/*
|
|
* Copyright 2018 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef ProxyUtils_DEFINED
|
|
#define ProxyUtils_DEFINED
|
|
|
|
#include "include/private/GrTypesPriv.h"
|
|
#include "src/gpu/GrImageInfo.h"
|
|
#include "src/gpu/GrPipeline.h"
|
|
#include "src/gpu/GrTextureProxy.h"
|
|
|
|
class GrDirectContext;
|
|
class GrProgramInfo;
|
|
|
|
namespace sk_gpu_test {
|
|
|
|
/** Makes a texture proxy containing the passed in color data. */
|
|
GrSurfaceProxyView MakeTextureProxyViewFromData(GrDirectContext*,
|
|
GrRenderable,
|
|
GrSurfaceOrigin,
|
|
const GrImageInfo&,
|
|
const void* data,
|
|
size_t rowBytes);
|
|
|
|
GrProgramInfo* CreateProgramInfo(const GrCaps*,
|
|
SkArenaAlloc*,
|
|
const GrSurfaceProxyView* writeView,
|
|
GrAppliedClip&&,
|
|
const GrXferProcessor::DstProxyView&,
|
|
GrGeometryProcessor*,
|
|
SkBlendMode,
|
|
GrPrimitiveType,
|
|
GrXferBarrierFlags renderPassXferBarriers,
|
|
GrPipeline::InputFlags flags = GrPipeline::InputFlags::kNone,
|
|
const GrUserStencilSettings* stencil =
|
|
&GrUserStencilSettings::kUnused);
|
|
|
|
|
|
} // namespace sk_gpu_test
|
|
|
|
#endif
|