| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 #ifndef GrDrawTarget_DEFINED | 8 #ifndef GrDrawTarget_DEFINED |
| 9 #define GrDrawTarget_DEFINED | 9 #define GrDrawTarget_DEFINED |
| 10 | 10 |
| (...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 * ClipTarget subclass sets clip bit in the stencil buffer. The subclass | 831 * ClipTarget subclass sets clip bit in the stencil buffer. The subclass |
| 832 * is free to clear the remaining bits to zero if masked clears are more | 832 * is free to clear the remaining bits to zero if masked clears are more |
| 833 * expensive than clearing all bits. | 833 * expensive than clearing all bits. |
| 834 */ | 834 */ |
| 835 virtual void clearStencilClip(const SkIRect& rect, bool insideClip, GrRender
Target* = NULL) = 0; | 835 virtual void clearStencilClip(const SkIRect& rect, bool insideClip, GrRender
Target* = NULL) = 0; |
| 836 | 836 |
| 837 /** | 837 /** |
| 838 * Release any resources that are cached but not currently in use. This | 838 * Release any resources that are cached but not currently in use. This |
| 839 * is intended to give an application some recourse when resources are low. | 839 * is intended to give an application some recourse when resources are low. |
| 840 */ | 840 */ |
| 841 void purgeResources() SK_OVERRIDE { | 841 void purgeResources() override { |
| 842 // The clip mask manager can rebuild all its clip masks so just | 842 // The clip mask manager can rebuild all its clip masks so just |
| 843 // get rid of them all. | 843 // get rid of them all. |
| 844 fClipMaskManager.purgeResources(); | 844 fClipMaskManager.purgeResources(); |
| 845 }; | 845 }; |
| 846 | 846 |
| 847 protected: | 847 protected: |
| 848 GrClipMaskManager fClipMaskManager; | 848 GrClipMaskManager fClipMaskManager; |
| 849 | 849 |
| 850 private: | 850 private: |
| 851 GrClipMaskManager* clipMaskManager() SK_OVERRIDE { return &fClipMaskManager;
} | 851 GrClipMaskManager* clipMaskManager() override { return &fClipMaskManager; } |
| 852 | 852 |
| 853 virtual bool setupClip(GrPipelineBuilder*, | 853 virtual bool setupClip(GrPipelineBuilder*, |
| 854 GrPipelineBuilder::AutoRestoreFragmentProcessors*, | 854 GrPipelineBuilder::AutoRestoreFragmentProcessors*, |
| 855 GrPipelineBuilder::AutoRestoreStencil*, | 855 GrPipelineBuilder::AutoRestoreStencil*, |
| 856 GrScissorState* scissorState, | 856 GrScissorState* scissorState, |
| 857 const SkRect* devBounds) SK_OVERRIDE; | 857 const SkRect* devBounds) override; |
| 858 | 858 |
| 859 typedef GrDrawTarget INHERITED; | 859 typedef GrDrawTarget INHERITED; |
| 860 }; | 860 }; |
| 861 | 861 |
| 862 #endif | 862 #endif |
| OLD | NEW |