diff options
author | Brian Salomon <bsalomon@google.com> | 2017-08-17 15:58:06 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-18 12:47:28 +0000 |
commit | 3fd295550f8c4fecd4bc61ce916738d49310eb67 (patch) | |
tree | 551160c13d73e996e8f624f21d6f9ba94ca711dd /src/gpu/GrResourceProvider.h | |
parent | cc4221be586a00d5190e765ebdb6c5e5731eefa9 (diff) |
Add GrTextureOp and use to implement SkGpuDevice::drawImage[Rect]() when possible
This op draws a texture rectangle in src over blending with no edge antialiasing. It less powerful than NonAAFillRectOp/GrPaint but has less CPU overhead.
Change-Id: Ia6107bb67c1c2a83de14c665aff64b0de2750fba
Reviewed-on: https://skia-review.googlesource.com/33802
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrResourceProvider.h')
-rw-r--r-- | src/gpu/GrResourceProvider.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/GrResourceProvider.h b/src/gpu/GrResourceProvider.h index 28207b7a87..9616d7541d 100644 --- a/src/gpu/GrResourceProvider.h +++ b/src/gpu/GrResourceProvider.h @@ -152,6 +152,8 @@ public: return this->createQuadIndexBuffer(); } + static int QuadCountOfQuadBuffer(); + /** * Factories for GrPath and GrPathRange objects. It's an error to call these if path rendering * is not supported. |