bsalomon@google.com | 19bbd3d | 2012-06-11 15:39:15 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #include "SkNullCanvas.h" |
| 9 | |
| 10 | #include "SkCanvas.h" |
bsalomon@google.com | 7f7dd73 | 2012-06-11 15:55:58 +0000 | [diff] [blame] | 11 | #include "SkNWayCanvas.h" |
bsalomon@google.com | 19bbd3d | 2012-06-11 15:39:15 +0000 | [diff] [blame] | 12 | |
| 13 | |
| 14 | SkCanvas* SkCreateNullCanvas() { |
| 15 | // An N-Way canvas forwards calls to N canvas's. When N == 0 it's |
| 16 | // effectively a null canvas. |
bsalomon@google.com | f6a78c9 | 2012-06-11 15:52:55 +0000 | [diff] [blame] | 17 | return SkNEW_ARGS(SkNWayCanvas, (0,0)); |
bsalomon@google.com | 19bbd3d | 2012-06-11 15:39:15 +0000 | [diff] [blame] | 18 | } |