blob: 866a3614975d6f1f0381a0f2698e2e9ddaf86b8c [file] [log] [blame]
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +00001/*
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.com7f7dd732012-06-11 15:55:58 +000011#include "SkNWayCanvas.h"
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000012
13
14SkCanvas* SkCreateNullCanvas() {
15 // An N-Way canvas forwards calls to N canvas's. When N == 0 it's
16 // effectively a null canvas.
bsalomon@google.comf6a78c92012-06-11 15:52:55 +000017 return SkNEW_ARGS(SkNWayCanvas, (0,0));
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000018}