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

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: moving IsPositiveScaleOrTranslation into gfx::Transform 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
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 <public/WebFilterOperations.h> 8 #include <public/WebFilterOperations.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 275
276 virtual ScrollbarLayer* toScrollbarLayer(); 276 virtual ScrollbarLayer* toScrollbarLayer();
277 277
278 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; 278 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const;
279 279
280 // In impl-side painting, this returns true if this layer type is not 280 // In impl-side painting, this returns true if this layer type is not
281 // compatible with the main thread running freely, such as a double-buffered 281 // compatible with the main thread running freely, such as a double-buffered
282 // canvas that doesn't want to be triple-buffered across all three trees. 282 // canvas that doesn't want to be triple-buffered across all three trees.
283 virtual bool blocksPendingCommit() const; 283 virtual bool blocksPendingCommit() const;
284 284
285 virtual bool canClipSelf() const { return false; }
danakj 2012/12/15 18:49:12 Even if this is meant to be short lived, we should
286
285 protected: 287 protected:
286 friend class LayerImpl; 288 friend class LayerImpl;
287 friend class TreeSynchronizer; 289 friend class TreeSynchronizer;
288 virtual ~Layer(); 290 virtual ~Layer();
289 291
290 Layer(); 292 Layer();
291 293
292 void setNeedsCommit(); 294 void setNeedsCommit();
293 void setNeedsFullTreeSync(); 295 void setNeedsFullTreeSync();
294 296
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 WebKit::WebLayerScrollClient* m_layerScrollClient; 386 WebKit::WebLayerScrollClient* m_layerScrollClient;
385 387
386 DrawProperties<Layer, RenderSurface> m_drawProperties; 388 DrawProperties<Layer, RenderSurface> m_drawProperties;
387 }; 389 };
388 390
389 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*); 391 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*);
390 392
391 } // namespace cc 393 } // namespace cc
392 394
393 #endif // CC_LAYER_H_ 395 #endif // CC_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698