Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(462)

Side by Side Diff: skia/ext/platform_picture_skia.h

Issue 10915065: Add PlatformPictureSkia and RecordingPlatformDeviceSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix SkProxyCanvas leak Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 SK_API PlatformPictureSkia {
17 public:
18 PlatformPictureSkia();
19 ~PlatformPictureSkia();
20
21 SkCanvas* beginRecording(int width, int height);
22 void endRecording();
23 void drawPicture(SkCanvas* canvas);
alokp 2012/09/20 15:47:51 I think a better name for this function would be d
reveman 2012/09/20 17:01:26 I agree. That's much better!
24
25 private:
26 SkPicture picture_;
reed1 2012/09/20 13:42:28 We are desperately trying to remove SkRefPtr from
reveman 2012/09/20 17:01:26 ok, np.
27 SkRefPtr<SkProxyCanvas> record_;
28
29 DISALLOW_COPY_AND_ASSIGN(PlatformPictureSkia);
30 };
31
32 } // namespace skia
33
34 #endif // SKIA_EXT_PLATFORM_PICTURE_SKIA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698