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

Side by Side Diff: cc/picture_record.h

Issue 11265046: cc: Add some impl-side painting stub classes and APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 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 CC_PICTURE_RECORD_H_
6 #define CC_PICTURE_RECORD_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h"
10 #include "cc/cc_export.h"
11 #include "third_party/skia/include/core/SkPicture.h"
12 #include "ui/gfx/rect.h"
13
14 namespace cc {
15
16 class ContentLayerClient;
17
18 class CC_EXPORT PictureRecord
19 : public base::RefCountedThreadSafe<PictureRecord> {
20 public:
21 scoped_refptr<PictureRecord> create(ContentLayerClient*, gfx::Rect);
22
23 const gfx::Rect& rect();
24 scoped_refptr<PictureRecord> clone();
25
26 protected:
27 PictureRecord();
28 ~PictureRecord();
29
30 gfx::Rect m_rect;
31 SkPicture m_picture;
32
33 private:
34 friend class base::RefCountedThreadSafe<PictureRecord>;
35
36 DISALLOW_COPY_AND_ASSIGN(PictureRecord);
37 };
38
39 } // namespace cc
40
41 #endif // CC_PICTURE_RECORD_H_
OLDNEW
« cc/picture.h ('K') | « cc/picture_layer_impl.cc ('k') | cc/picture_record.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698