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

Side by Side Diff: cc/layers/layer_serializer.cc

Issue 1398443008: Add support for (de)serializing cc::Layer hierarchy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@review-1394353002
Patch Set: Fixed CC_EXPORT Created 5 years, 2 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
OLDNEW
(Empty)
1 // Copyright 2015 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 #include "cc/layers/layer_serializer.h"
6
7 #include "cc/layers/layer.h"
8 #include "cc/proto/layer.pb.h"
9
10 namespace cc {
11
12 // static
13 void LayerSerializer::SerializeLayerHierarchy(
14 const scoped_refptr<Layer> root_layer,
15 proto::LayerNode* root_node) {
16 root_layer->ToLayerNodeProto(root_node);
17 }
18
19 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698