diff options
author | 2011-08-23 15:45:25 +0000 | |
---|---|---|
committer | 2011-08-23 15:45:25 +0000 | |
commit | 471d471dcd7422e5dd9c822c1092b2ba4721dcfe (patch) | |
tree | baba8bd0f6e127a3b346f305f3e4b48dd4c84735 /gpu/src/GrGpu.cpp | |
parent | 00245c94cd25dcff96fa8d54849327dc7f7f2852 (diff) |
Correctly determine whether HW AA lines can be used
Review URL: http://codereview.appspot.com/4937049/
git-svn-id: http://skia.googlecode.com/svn/trunk@2162 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrGpu.cpp')
-rw-r--r-- | gpu/src/GrGpu.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gpu/src/GrGpu.cpp b/gpu/src/GrGpu.cpp index 24950c4270..b492952e28 100644 --- a/gpu/src/GrGpu.cpp +++ b/gpu/src/GrGpu.cpp @@ -142,6 +142,13 @@ void GrGpu::unimpl(const char msg[]) { //////////////////////////////////////////////////////////////////////////////// +bool GrGpu::willUseHWAALines() const { + return (kAntialias_StateBit & fCurrDrawState.fFlagBits) && + CanUseHWAALines(this->getGeomSrc().fVertexLayout, fCurrDrawState); +} + +//////////////////////////////////////////////////////////////////////////////// + GrTexture* GrGpu::createTexture(const GrTextureDesc& desc, const void* srcData, size_t rowBytes) { this->handleDirtyContext(); |