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

Unified Diff: cc/picture.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: Address nduca bikesheddery 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/cc.gyp ('k') | cc/picture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture.h
diff --git a/cc/picture.h b/cc/picture.h
new file mode 100644
index 0000000000000000000000000000000000000000..86a2dd81589dcbef44be20e42f48bf401b16790d
--- /dev/null
+++ b/cc/picture.h
@@ -0,0 +1,41 @@
+// Copyright 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 CC_PICTURE_H_
+#define CC_PICTURE_H_
+
+#include "base/basictypes.h"
+#include "base/memory/ref_counted.h"
+#include "cc/cc_export.h"
+#include "third_party/skia/include/core/SkPicture.h"
+#include "ui/gfx/rect.h"
+
+namespace cc {
+
+class ContentLayerClient;
+
+class CC_EXPORT Picture
+ : public base::RefCountedThreadSafe<Picture> {
+public:
+ scoped_refptr<Picture> create(ContentLayerClient*, gfx::Rect);
+
+ const gfx::Rect& rect();
+ scoped_refptr<Picture> clone();
+
+protected:
+ Picture();
+ ~Picture();
+
+ gfx::Rect m_rect;
+ SkPicture m_picture;
+
+private:
+ friend class base::RefCountedThreadSafe<Picture>;
+
+ DISALLOW_COPY_AND_ASSIGN(Picture);
+};
+
+} // namespace cc
+
+#endif // CC_PICTURE_H_
« no previous file with comments | « cc/cc.gyp ('k') | cc/picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698