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

Unified Diff: cc/picture.cc

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 side-by-side diff with in-line comments
Download patch
« cc/picture.h ('K') | « cc/picture.h ('k') | cc/picture_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture.cc
diff --git a/cc/picture.cc b/cc/picture.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e4a4ec0d4f854624718b263e894e0f445ca65869
--- /dev/null
+++ b/cc/picture.cc
@@ -0,0 +1,36 @@
+// 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.
+
+#include "config.h"
+
+#include "cc/picture.h"
+
+namespace cc {
+
+Picture::Picture() {
+}
+
+Picture::~Picture() {
+}
+
+void Picture::invalidate(gfx::Rect rect) {
+ // TODO(enne)
+}
+
+void Picture::resize(gfx::Size size) {
+ // TODO(enne)
+}
+
+void Picture::update(ContentLayerClient* painter) {
+ // TODO(enne)
+}
+
+void Picture::pushPropertiesTo(Picture& other) {
+ other.size_ = size_;
+ other.pile_.resize(pile_.size());
+ for (size_t i = 0; i < pile_.size(); ++i)
+ other.pile_[i] = pile_[i];
+}
+
+} // namespace cc
« cc/picture.h ('K') | « cc/picture.h ('k') | cc/picture_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698