blob: b5ee8d30a1839a0992962a7fce8db6ef050de126 [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.
halcanary385fe4d2015-08-26 13:07:48 -070017 return new SkNWayCanvas(0, 0);
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000018}