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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // |border| = (A, C, A + B, C + D) 54 // |border| = (A, C, A + B, C + D)
55 // |fill_center| indicates whether to draw the center quad or not. 55 // |fill_center| indicates whether to draw the center quad or not.
56 void SetLayout(const gfx::Rect& image_aperture, 56 void SetLayout(const gfx::Rect& image_aperture,
57 const gfx::Rect& border, 57 const gfx::Rect& border,
58 bool fill_center); 58 bool fill_center);
59 59
60 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; 60 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
61 void PushPropertiesTo(LayerImpl* layer) override; 61 void PushPropertiesTo(LayerImpl* layer) override;
62 62
63 void AppendQuads(RenderPass* render_pass, 63 void AppendQuads(RenderPass* render_pass,
64 const Occlusion& occlusion_in_content_space,
65 AppendQuadsData* append_quads_data) override; 64 AppendQuadsData* append_quads_data) override;
66 65
67 base::DictionaryValue* LayerTreeAsJson() const override; 66 base::DictionaryValue* LayerTreeAsJson() const override;
68 67
69 protected: 68 protected:
70 NinePatchLayerImpl(LayerTreeImpl* tree_impl, int id); 69 NinePatchLayerImpl(LayerTreeImpl* tree_impl, int id);
71 70
72 private: 71 private:
73 const char* LayerTypeAsString() const override; 72 const char* LayerTypeAsString() const override;
74 73
75 void CheckGeometryLimitations(); 74 void CheckGeometryLimitations();
76 75
77 // The transparent center region that shows the parent layer's contents in 76 // The transparent center region that shows the parent layer's contents in
78 // image space. 77 // image space.
79 gfx::Rect image_aperture_; 78 gfx::Rect image_aperture_;
80 79
81 // An inset border that the patches will be mapped to. 80 // An inset border that the patches will be mapped to.
82 gfx::Rect border_; 81 gfx::Rect border_;
83 82
84 bool fill_center_; 83 bool fill_center_;
85 84
86 DISALLOW_COPY_AND_ASSIGN(NinePatchLayerImpl); 85 DISALLOW_COPY_AND_ASSIGN(NinePatchLayerImpl);
87 }; 86 };
88 87
89 } // namespace cc 88 } // namespace cc
90 89
91 #endif // CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_ 90 #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