blob: 2687025a81b63e7a4f34e2c376bba0bd5e9ed07d [file] [log] [blame]
reed@google.com58b21ec2012-07-30 18:20:12 +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#ifndef SkImage_Base_DEFINED
9#define SkImage_Base_DEFINED
10
11#include "SkImage.h"
12
13class SkImage_Base : public SkImage {
14public:
15 SkImage_Base(int width, int height) : INHERITED(width, height) {}
16
robertphillips@google.com97b6b072012-10-31 14:48:39 +000017 virtual void onDraw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*) = 0;
reed@google.com58b21ec2012-07-30 18:20:12 +000018
rmistry@google.comfbfcd562012-08-23 18:09:54 +000019private:
reed@google.com58b21ec2012-07-30 18:20:12 +000020 typedef SkImage INHERITED;
21};
22
23#endif