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

Side by Side Diff: cc/layer.h

Issue 11567034: Changes subtreeShouldRenderToSeparateSurface logic to account for explicit clipping (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: very minor change Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « cc/draw_properties.h ('k') | cc/layer.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_H_ 5 #ifndef CC_LAYER_H_
6 #define CC_LAYER_H_ 6 #define CC_LAYER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 282
283 virtual ScrollbarLayer* toScrollbarLayer(); 283 virtual ScrollbarLayer* toScrollbarLayer();
284 284
285 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; 285 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const;
286 286
287 // In impl-side painting, this returns true if this layer type is not 287 // In impl-side painting, this returns true if this layer type is not
288 // compatible with the main thread running freely, such as a double-buffered 288 // compatible with the main thread running freely, such as a double-buffered
289 // canvas that doesn't want to be triple-buffered across all three trees. 289 // canvas that doesn't want to be triple-buffered across all three trees.
290 virtual bool blocksPendingCommit() const; 290 virtual bool blocksPendingCommit() const;
291 291
292 virtual bool canClipSelf() const;
293
292 protected: 294 protected:
293 friend class LayerImpl; 295 friend class LayerImpl;
294 friend class TreeSynchronizer; 296 friend class TreeSynchronizer;
295 virtual ~Layer(); 297 virtual ~Layer();
296 298
297 Layer(); 299 Layer();
298 300
299 void setNeedsCommit(); 301 void setNeedsCommit();
300 void setNeedsFullTreeSync(); 302 void setNeedsFullTreeSync();
301 303
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 WebKit::WebLayerScrollClient* m_layerScrollClient; 404 WebKit::WebLayerScrollClient* m_layerScrollClient;
403 405
404 DrawProperties<Layer, RenderSurface> m_drawProperties; 406 DrawProperties<Layer, RenderSurface> m_drawProperties;
405 }; 407 };
406 408
407 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*); 409 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*);
408 410
409 } // namespace cc 411 } // namespace cc
410 412
411 #endif // CC_LAYER_H_ 413 #endif // CC_LAYER_H_
OLDNEW
« no previous file with comments | « cc/draw_properties.h ('k') | cc/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698