1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/skia/trunk/include/views/SkBGViewArtist.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,33 @@ 1.4 + 1.5 +/* 1.6 + * Copyright 2006 The Android Open Source Project 1.7 + * 1.8 + * Use of this source code is governed by a BSD-style license that can be 1.9 + * found in the LICENSE file. 1.10 + */ 1.11 + 1.12 + 1.13 +#ifndef SkBGViewArtist_DEFINED 1.14 +#define SkBGViewArtist_DEFINED 1.15 + 1.16 +#include "SkView.h" 1.17 +#include "SkPaint.h" 1.18 + 1.19 +class SkBGViewArtist : public SkView::Artist { 1.20 +public: 1.21 + SkBGViewArtist(SkColor c = SK_ColorWHITE); 1.22 + virtual ~SkBGViewArtist(); 1.23 + 1.24 + const SkPaint& paint() const { return fPaint; } 1.25 + SkPaint& paint() { return fPaint; } 1.26 + 1.27 +protected: 1.28 + // overrides 1.29 + virtual void onDraw(SkView*, SkCanvas*); 1.30 + virtual void onInflate(const SkDOM&, const SkDOM::Node*); 1.31 + 1.32 +private: 1.33 + SkPaint fPaint; 1.34 +}; 1.35 + 1.36 +#endif