Chromium Code Reviews| Index: skia/ext/platform_picture_skia.h |
| diff --git a/skia/ext/platform_picture_skia.h b/skia/ext/platform_picture_skia.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..baed9f560ae68c4ad7f0fc05e01083841a4f1ac4 |
| --- /dev/null |
| +++ b/skia/ext/platform_picture_skia.h |
| @@ -0,0 +1,34 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef SKIA_EXT_PLATFORM_PICTURE_SKIA_H_ |
| +#define SKIA_EXT_PLATFORM_PICTURE_SKIA_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "third_party/skia/include/core/SkPicture.h" |
| + |
| +class SkCanvas; |
| +class SkProxyCanvas; |
| + |
| +namespace skia { |
| + |
| +class PlatformPictureSkia { |
| + public: |
| + SK_API PlatformPictureSkia(); |
|
alokp
2012/09/17 16:29:30
Don't we export the whole class?
reveman
2012/09/17 21:22:16
yea, I'll move the export directive to the class.
|
| + SK_API ~PlatformPictureSkia(); |
| + |
| + SK_API SkCanvas* beginRecording(int width, int height); |
| + SK_API void endRecording(); |
| + SK_API void drawPicture(SkCanvas* canvas); |
| + |
| + private: |
| + SkPicture picture_; |
| + SkProxyCanvas* record_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(PlatformPictureSkia); |
| +}; |
| + |
| +} // namespace skia |
| + |
| +#endif // SKIA_EXT_PLATFORM_PICTURE_SKIA_H_ |