diff options
author | Brian Salomon <bsalomon@google.com> | 2018-02-09 09:54:25 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-09 15:57:41 +0000 |
commit | 1fabd51f585383b0f7b8f82c4489989e9379627b (patch) | |
tree | 4303136d754832c6bc0aaa708c3792f1b7639166 /src/gpu/GrGpu.h | |
parent | df430053e03ce6baa38fe7f1fcd6c4ccae66d4bf (diff) |
Track dirty rects on GrRenderTargets in native space rather than origin-relative
Change-Id: Icccf2fcb5d468696c42c5a0ccf405e30e5e9bc65
Reviewed-on: https://skia-review.googlesource.com/105980
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrGpu.h')
-rw-r--r-- | src/gpu/GrGpu.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h index 6527064b93..baeb46ae75 100644 --- a/src/gpu/GrGpu.h +++ b/src/gpu/GrGpu.h @@ -149,7 +149,7 @@ public: /** * Resolves MSAA. */ - void resolveRenderTarget(GrRenderTarget*, GrSurfaceOrigin); + void resolveRenderTarget(GrRenderTarget*); /** Info struct returned by getReadPixelsInfo about performing intermediate draws before reading pixels for performance or correctness. */ @@ -525,8 +525,9 @@ protected: *preference = SkTMax(*preference, elevation); } - // Handles cases where a surface will be updated without a call to flushRenderTarget - void didWriteToSurface(GrSurface* surface, const SkIRect* bounds, uint32_t mipLevels = 1) const; + // Handles cases where a surface will be updated without a call to flushRenderTarget. + void didWriteToSurface(GrSurface* surface, GrSurfaceOrigin origin, const SkIRect* bounds, + uint32_t mipLevels = 1) const; Stats fStats; std::unique_ptr<GrPathRendering> fPathRendering; @@ -596,7 +597,7 @@ private: size_t offset, size_t rowBytes) = 0; // overridden by backend-specific derived class to perform the resolve - virtual void onResolveRenderTarget(GrRenderTarget* target, GrSurfaceOrigin) = 0; + virtual void onResolveRenderTarget(GrRenderTarget* target) = 0; // overridden by backend specific derived class to perform the copy surface virtual bool onCopySurface(GrSurface* dst, GrSurfaceOrigin dstOrigin, |