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

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

Issue 308193003: Removed QuadSink and MockQuadCuller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@plumLayerImpl
Patch Set: rebase Created 6 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 "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 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) 60 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
61 OVERRIDE; 61 OVERRIDE;
62 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; 62 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE;
63 63
64 virtual void AppendQuads(QuadSink* quad_sink, 64 virtual void AppendQuads(RenderPass* render_pass,
65 const OcclusionTracker<LayerImpl>& occlusion_tracker,
65 AppendQuadsData* append_quads_data) OVERRIDE; 66 AppendQuadsData* append_quads_data) OVERRIDE;
66 67
67 virtual base::DictionaryValue* LayerTreeAsJson() const OVERRIDE; 68 virtual base::DictionaryValue* LayerTreeAsJson() const OVERRIDE;
68 69
69 protected: 70 protected:
70 NinePatchLayerImpl(LayerTreeImpl* tree_impl, int id); 71 NinePatchLayerImpl(LayerTreeImpl* tree_impl, int id);
71 72
72 private: 73 private:
73 virtual const char* LayerTypeAsString() const OVERRIDE; 74 virtual const char* LayerTypeAsString() const OVERRIDE;
74 75
75 void CheckGeometryLimitations(); 76 void CheckGeometryLimitations();
76 77
77 // The transparent center region that shows the parent layer's contents in 78 // The transparent center region that shows the parent layer's contents in
78 // image space. 79 // image space.
79 gfx::Rect image_aperture_; 80 gfx::Rect image_aperture_;
80 81
81 // An inset border that the patches will be mapped to. 82 // An inset border that the patches will be mapped to.
82 gfx::Rect border_; 83 gfx::Rect border_;
83 84
84 bool fill_center_; 85 bool fill_center_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(NinePatchLayerImpl); 87 DISALLOW_COPY_AND_ASSIGN(NinePatchLayerImpl);
87 }; 88 };
88 89
89 } // namespace cc 90 } // namespace cc
90 91
91 #endif // CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_ 92 #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