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

Side by Side Diff: cc/layers/nine_patch_layer_impl.h

Issue 2018263002: Change LayerImpl::LayerTreeAsJson to return a std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/nine_patch_layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_
6 #define CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_ 6 #define CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 const gfx::Rect& border, 59 const gfx::Rect& border,
60 bool fill_center, 60 bool fill_center,
61 bool nearest_neighbor); 61 bool nearest_neighbor);
62 62
63 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; 63 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
64 void PushPropertiesTo(LayerImpl* layer) override; 64 void PushPropertiesTo(LayerImpl* layer) override;
65 65
66 void AppendQuads(RenderPass* render_pass, 66 void AppendQuads(RenderPass* render_pass,
67 AppendQuadsData* append_quads_data) override; 67 AppendQuadsData* append_quads_data) override;
68 68
69 base::DictionaryValue* LayerTreeAsJson() const override; 69 std::unique_ptr<base::DictionaryValue> LayerTreeAsJson() const override;
70 70
71 protected: 71 protected:
72 NinePatchLayerImpl(LayerTreeImpl* tree_impl, int id); 72 NinePatchLayerImpl(LayerTreeImpl* tree_impl, int id);
73 73
74 private: 74 private:
75 const char* LayerTypeAsString() const override; 75 const char* LayerTypeAsString() const override;
76 76
77 void CheckGeometryLimitations(); 77 void CheckGeometryLimitations();
78 78
79 // The transparent center region that shows the parent layer's contents in 79 // The transparent center region that shows the parent layer's contents in
80 // image space. 80 // image space.
81 gfx::Rect image_aperture_; 81 gfx::Rect image_aperture_;
82 82
83 // An inset border that the patches will be mapped to. 83 // An inset border that the patches will be mapped to.
84 gfx::Rect border_; 84 gfx::Rect border_;
85 85
86 bool fill_center_; 86 bool fill_center_;
87 87
88 bool nearest_neighbor_; 88 bool nearest_neighbor_;
89 89
90 DISALLOW_COPY_AND_ASSIGN(NinePatchLayerImpl); 90 DISALLOW_COPY_AND_ASSIGN(NinePatchLayerImpl);
91 }; 91 };
92 92
93 } // namespace cc 93 } // namespace cc
94 94
95 #endif // CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_ 95 #endif // CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/nine_patch_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698