| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "GrClipStackClip.h" | 8 #include "GrClipStackClip.h" |
| 9 | 9 |
| 10 #include "GrAppliedClip.h" | 10 #include "GrAppliedClip.h" |
| 11 #include "GrDrawingManager.h" | 11 #include "GrDrawingManager.h" |
| 12 #include "GrDrawContextPriv.h" | 12 #include "GrDrawContextPriv.h" |
| 13 #include "GrFixedClip.h" |
| 13 #include "GrGpuResourcePriv.h" | 14 #include "GrGpuResourcePriv.h" |
| 14 #include "GrRenderTargetPriv.h" | 15 #include "GrRenderTargetPriv.h" |
| 15 #include "GrStencilAttachment.h" | 16 #include "GrStencilAttachment.h" |
| 16 #include "GrSWMaskHelper.h" | 17 #include "GrSWMaskHelper.h" |
| 17 #include "effects/GrConvexPolyEffect.h" | 18 #include "effects/GrConvexPolyEffect.h" |
| 18 #include "effects/GrRRectEffect.h" | 19 #include "effects/GrRRectEffect.h" |
| 19 #include "effects/GrTextureDomain.h" | 20 #include "effects/GrTextureDomain.h" |
| 20 | 21 |
| 21 typedef SkClipStack::Element Element; | 22 typedef SkClipStack::Element Element; |
| 22 typedef GrReducedClip::InitialState InitialState; | 23 typedef GrReducedClip::InitialState InitialState; |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 sk_sp<GrTexture> result(texProvider->createApproxTexture(desc)); | 783 sk_sp<GrTexture> result(texProvider->createApproxTexture(desc)); |
| 783 if (!result) { | 784 if (!result) { |
| 784 return nullptr; | 785 return nullptr; |
| 785 } | 786 } |
| 786 result->resourcePriv().setUniqueKey(key); | 787 result->resourcePriv().setUniqueKey(key); |
| 787 | 788 |
| 788 helper.toTexture(result.get()); | 789 helper.toTexture(result.get()); |
| 789 | 790 |
| 790 return result; | 791 return result; |
| 791 } | 792 } |
| OLD | NEW |