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

Side by Side Diff: cc/layer_impl.h

Issue 11575018: cc: Add id->LayerImpl map to LayerTreeImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/layer_impl.cc » ('j') | cc/layer_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_LAYER_IMPL_H_ 5 #ifndef CC_LAYER_IMPL_H_
6 #define CC_LAYER_IMPL_H_ 6 #define CC_LAYER_IMPL_H_
7 7
8 #include <public/WebFilterOperations.h> 8 #include <public/WebFilterOperations.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 // Get the color and size of the layer's debug border. 287 // Get the color and size of the layer's debug border.
288 virtual void getDebugBorderProperties(SkColor*, float* width) const; 288 virtual void getDebugBorderProperties(SkColor*, float* width) const;
289 289
290 void appendDebugBorderQuad(QuadSink&, const SharedQuadState*, AppendQuadsDat a&) const; 290 void appendDebugBorderQuad(QuadSink&, const SharedQuadState*, AppendQuadsDat a&) const;
291 291
292 virtual void dumpLayerProperties(std::string*, int indent) const; 292 virtual void dumpLayerProperties(std::string*, int indent) const;
293 static std::string indentString(int indent); 293 static std::string indentString(int indent);
294 294
295 private: 295 private:
296 scoped_ptr<LayerImpl> takeMaskLayer();
297 scoped_ptr<LayerImpl> takeReplicaLayer();
298
296 void setParent(LayerImpl* parent) { m_parent = parent; } 299 void setParent(LayerImpl* parent) { m_parent = parent; }
297 friend class TreeSynchronizer; 300 friend class TreeSynchronizer;
298 void clearChildList(); // Warning: This does not preserve tree structure inv ariants and so is only exposed to the tree synchronizer. 301 void clearChildList(); // Warning: This does not preserve tree structure inv ariants and so is only exposed to the tree synchronizer.
299 302
300 void noteLayerSurfacePropertyChanged(); 303 void noteLayerSurfacePropertyChanged();
301 void noteLayerPropertyChanged(); 304 void noteLayerPropertyChanged();
302 void noteLayerPropertyChangedForSubtree(); 305 void noteLayerPropertyChangedForSubtree();
303 306
304 // Note carefully this does not affect the current layer. 307 // Note carefully this does not affect the current layer.
305 void noteLayerPropertyChangedForDescendants(); 308 void noteLayerPropertyChangedForDescendants();
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 // Group of properties that need to be computed based on the layer tree 401 // Group of properties that need to be computed based on the layer tree
399 // hierarchy before layers can be drawn. 402 // hierarchy before layers can be drawn.
400 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; 403 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties;
401 404
402 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 405 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
403 }; 406 };
404 407
405 } 408 }
406 409
407 #endif // CC_LAYER_IMPL_H_ 410 #endif // CC_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer_impl.cc » ('j') | cc/layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698