d316e77c1e
This reverts commit 398487a850
.
Reason for revert: See if this is causing the roll failure
Original change's description:
> Add a deferred copy surface (take 2)
>
> This CL forces all GrSurface copies to go through a GrSurfaceContext (rather than GrContext).
>
> There is a bit of goofiness going on here until read/writePixels is also consolidated in GrSurfaceContext and a proxy-backed SkImage/SkSurface is added.
>
> This is a reland of https://skia-review.googlesource.com/c/5773/ (Add a deferred copy surface)
>
> Change-Id: Ide560f569aede5e622420dc2f30eef76357d69f4
> Reviewed-on: https://skia-review.googlesource.com/5939
> Reviewed-by: Brian Osman <brianosman@google.com>
> Reviewed-by: Brian Salomon <bsalomon@google.com>
> Commit-Queue: Robert Phillips <robertphillips@google.com>
>
TBR=bsalomon@google.com,robertphillips@google.com,brianosman@google.com,reviews@skia.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Change-Id: I1ef40f0d5fb0bca62031f94f10eb18acd753e913
Reviewed-on: https://skia-review.googlesource.com/6024
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
44 lines
1.0 KiB
C++
44 lines
1.0 KiB
C++
/*
|
|
* Copyright 2016 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef GrSurfaceContext_DEFINED
|
|
#define GrSurfaceContext_DEFINED
|
|
|
|
#include "SkRefCnt.h"
|
|
|
|
class GrAuditTrail;
|
|
class GrContext;
|
|
class GrSingleOwner;
|
|
class GrSurface;
|
|
struct SkIPoint;
|
|
struct SkIRect;
|
|
|
|
/**
|
|
* A helper object to orchestrate commands for a particular surface
|
|
*/
|
|
class SK_API GrSurfaceContext : public SkRefCnt {
|
|
public:
|
|
~GrSurfaceContext() override {}
|
|
|
|
virtual bool copySurface(GrSurface* src, const SkIRect& srcRect, const SkIPoint& dstPoint) = 0;
|
|
|
|
GrAuditTrail* auditTrail() { return fAuditTrail; }
|
|
|
|
protected:
|
|
GrSurfaceContext(GrContext*, GrAuditTrail*, GrSingleOwner*);
|
|
|
|
SkDEBUGCODE(GrSingleOwner* singleOwner() { return fSingleOwner; })
|
|
|
|
GrContext* fContext;
|
|
GrAuditTrail* fAuditTrail;
|
|
|
|
// In debug builds we guard against improper thread handling
|
|
SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;)
|
|
};
|
|
|
|
#endif
|