| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 "GrImmediateDrawTarget.h" | 8 #include "GrImmediateDrawTarget.h" |
| 9 | 9 |
| 10 #include "GrGpu.h" | 10 #include "GrGpu.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 #endif | 40 #endif |
| 41 } | 41 } |
| 42 | 42 |
| 43 void GrImmediateDrawTarget::onCopySurface(GrSurface* dst, | 43 void GrImmediateDrawTarget::onCopySurface(GrSurface* dst, |
| 44 GrSurface* src, | 44 GrSurface* src, |
| 45 const SkIRect& srcRect, | 45 const SkIRect& srcRect, |
| 46 const SkIPoint& dstPoint) { | 46 const SkIPoint& dstPoint) { |
| 47 this->getGpu()->copySurface(dst, src, srcRect, dstPoint); | 47 this->getGpu()->copySurface(dst, src, srcRect, dstPoint); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void GrImmediateDrawTarget::clearStencilClip(const SkIRect& rect, | |
| 51 bool insideClip, | |
| 52 GrRenderTarget* renderTarget) { | |
| 53 this->getGpu()->clearStencilClip(rect, insideClip, renderTarget); | |
| 54 } | |
| 55 | |
| 56 void GrImmediateDrawTarget::onReset() {} | 50 void GrImmediateDrawTarget::onReset() {} |
| 57 | 51 |
| 58 void GrImmediateDrawTarget::onFlush() { | 52 void GrImmediateDrawTarget::onFlush() { |
| 59 ++fDrawID; | 53 ++fDrawID; |
| 60 } | 54 } |
| OLD | NEW |