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

Unified Diff: cc/proto/picture_data.h

Issue 1982893002: [blimp] Add SkPicture caching support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge origin/master Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: cc/proto/picture_data.h
diff --git a/cc/proto/picture_data.h b/cc/proto/picture_data.h
new file mode 100644
index 0000000000000000000000000000000000000000..3f122e265683b28b18fbda5a19b110c583319d93
--- /dev/null
+++ b/cc/proto/picture_data.h
@@ -0,0 +1,28 @@
+// Copyright 2016 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_PROTO_PICTURE_DATA_H_
+#define CC_PROTO_PICTURE_DATA_H_
+
+#include <stdint.h>
+
+#include "cc/base/cc_export.h"
+#include "third_party/skia/include/core/SkData.h"
+#include "third_party/skia/include/core/SkRefCnt.h"
+
+namespace cc {
+
+// PictureData is a holder object for a serialized SkPicture and its unique ID.
+struct CC_EXPORT PictureData {
+ PictureData(uint32_t unique_id, sk_sp<SkData> data);
+ PictureData(const PictureData& other);
+ ~PictureData();
+
+ uint32_t unique_id;
+ sk_sp<SkData> data;
+};
+
+} // namespace cc
+
+#endif // CC_PROTO_PICTURE_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698