Lines Matching refs:SkSurface_Gpu
8 #include "SkSurface_Gpu.h"
31 SkSurface_Gpu::SkSurface_Gpu(sk_sp<SkGpuDevice> device)
37 SkSurface_Gpu::~SkSurface_Gpu() {
40 static GrRenderTarget* prepare_rt_for_external_access(SkSurface_Gpu* surface,
59 GrBackendTexture SkSurface_Gpu::onGetBackendTexture(BackendHandleAccess access) {
71 GrBackendRenderTarget SkSurface_Gpu::onGetBackendRenderTarget(BackendHandleAccess access) {
80 SkCanvas* SkSurface_Gpu::onNewCanvas() { return new SkCanvas(fDevice); }
82 sk_sp<SkSurface> SkSurface_Gpu::onNewSurface(const SkImageInfo& info) {
91 sk_sp<SkImage> SkSurface_Gpu::onNewImageSnapshot(const SkIRect* subset) {
132 void SkSurface_Gpu::onWritePixels(const SkPixmap& src, int x, int y) {
139 void SkSurface_Gpu::onCopyOnWrite(ContentChangeMode mode) {
153 this->SkSurface_Gpu::onDiscard();
157 void SkSurface_Gpu::onDiscard() {
161 GrSemaphoresSubmitted SkSurface_Gpu::onFlush(BackendSurfaceAccess access, GrFlushFlags flags,
170 bool SkSurface_Gpu::onWait(int numSemaphores, const GrBackendSemaphore* waitSemaphores) {
174 bool SkSurface_Gpu::onCharacterize(SkSurfaceCharacterization* characterization) const {
210 bool SkSurface_Gpu::isCompatible(const SkSurfaceCharacterization& characterization) const {
269 bool SkSurface_Gpu::onDraw(const SkDeferredDisplayList* ddl) {
284 bool SkSurface_Gpu::Valid(const SkImageInfo& info) {
288 bool SkSurface_Gpu::Valid(const GrCaps* caps, GrPixelConfig config, SkColorSpace* colorSpace) {
310 if (!SkSurface_Gpu::Valid(context->priv().caps(), c.config(), c.colorSpace())) {
345 sk_sp<SkSurface> s = sk_make_sp<SkSurface_Gpu>(std::move(device));
348 SkSurface_Gpu* gpuSurface = static_cast<SkSurface_Gpu*>(s.get());
364 if (!SkSurface_Gpu::Valid(info)) {
380 return sk_make_sp<SkSurface_Gpu>(std::move(device));
383 sk_sp<SkSurface> SkSurface_Gpu::MakeWrappedRenderTarget(GrContext* context,
397 return sk_make_sp<SkSurface_Gpu>(std::move(device));
410 if (!SkSurface_Gpu::Valid(info)) {
455 if (!SkSurface_Gpu::Valid(context->priv().caps(), texCopy.config(), colorSpace.get())) {
478 return sk_make_sp<SkSurface_Gpu>(std::move(device));
487 if (!SkSurface_Gpu::Valid(info)) {
523 if (!SkSurface_Gpu::Valid(context->priv().caps(), rtCopy.config(), colorSpace.get())) {
545 return sk_make_sp<SkSurface_Gpu>(std::move(device));
566 if (!SkSurface_Gpu::Valid(context->priv().caps(), texCopy.config(), colorSpace.get())) {
586 return sk_make_sp<SkSurface_Gpu>(std::move(device));