Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef SKIA_EXT_PLATFORM_PICTURE_SKIA_H_ | |
| 6 #define SKIA_EXT_PLATFORM_PICTURE_SKIA_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "third_party/skia/include/core/SkPicture.h" | |
| 10 | |
| 11 class SkCanvas; | |
| 12 class SkProxyCanvas; | |
| 13 | |
| 14 namespace skia { | |
| 15 | |
| 16 class PlatformPictureSkia { | |
| 17 public: | |
| 18 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.
| |
| 19 SK_API ~PlatformPictureSkia(); | |
| 20 | |
| 21 SK_API SkCanvas* beginRecording(int width, int height); | |
| 22 SK_API void endRecording(); | |
| 23 SK_API void drawPicture(SkCanvas* canvas); | |
| 24 | |
| 25 private: | |
| 26 SkPicture picture_; | |
| 27 SkProxyCanvas* record_; | |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(PlatformPictureSkia); | |
| 30 }; | |
| 31 | |
| 32 } // namespace skia | |
| 33 | |
| 34 #endif // SKIA_EXT_PLATFORM_PICTURE_SKIA_H_ | |
| OLD | NEW |