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

Side by Side Diff: cc/layer.h

Issue 10690168: Aura: Resize locks with --ui-enable-threaded-compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved needing to kick a frame logic up to RWHVA from Compositor. Created 8 years, 2 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
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 LayerChromium_h 5 #ifndef LayerChromium_h
6 #define LayerChromium_h 6 #define LayerChromium_h
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "CCLayerAnimationController.h" 9 #include "CCLayerAnimationController.h"
10 #include "CCOcclusionTracker.h" 10 #include "CCOcclusionTracker.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 254
255 bool hasActiveAnimation() const; 255 bool hasActiveAnimation() const;
256 256
257 virtual void notifyAnimationStarted(const CCAnimationEvent&, double wallCloc kTime); 257 virtual void notifyAnimationStarted(const CCAnimationEvent&, double wallCloc kTime);
258 virtual void notifyAnimationFinished(double wallClockTime); 258 virtual void notifyAnimationFinished(double wallClockTime);
259 259
260 virtual Region visibleContentOpaqueRegion() const; 260 virtual Region visibleContentOpaqueRegion() const;
261 261
262 virtual ScrollbarLayerChromium* toScrollbarLayerChromium(); 262 virtual ScrollbarLayerChromium* toScrollbarLayerChromium();
263 263
264 void setDeferUpdates(bool);
265 bool deferUpdates();
266
264 protected: 267 protected:
265 friend class CCLayerImpl; 268 friend class CCLayerImpl;
266 friend class TreeSynchronizer; 269 friend class TreeSynchronizer;
267 virtual ~LayerChromium(); 270 virtual ~LayerChromium();
268 271
269 LayerChromium(); 272 LayerChromium();
270 273
271 void setNeedsCommit(); 274 void setNeedsCommit();
272 275
273 IntRect layerRectToContentRect(const WebKit::WebRect& layerRect); 276 IntRect layerRectToContentRect(const WebKit::WebRect& layerRect);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 373
371 // Uses target surface space. 374 // Uses target surface space.
372 IntRect m_drawableContentRect; 375 IntRect m_drawableContentRect;
373 float m_contentsScale; 376 float m_contentsScale;
374 bool m_boundsContainPageScale; 377 bool m_boundsContainPageScale;
375 378
376 WebKit::WebTransformationMatrix m_implTransform; 379 WebKit::WebTransformationMatrix m_implTransform;
377 380
378 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; 381 WebKit::WebAnimationDelegate* m_layerAnimationDelegate;
379 WebKit::WebLayerScrollClient* m_layerScrollClient; 382 WebKit::WebLayerScrollClient* m_layerScrollClient;
383
384 // Whether or not we should defer updates to the CCLayerImpl subtree rooted at this node.
385 bool m_deferUpdates;
380 }; 386 };
381 387
382 void sortLayers(std::vector<scoped_refptr<LayerChromium> >::iterator, std::vecto r<scoped_refptr<LayerChromium> >::iterator, void*); 388 void sortLayers(std::vector<scoped_refptr<LayerChromium> >::iterator, std::vecto r<scoped_refptr<LayerChromium> >::iterator, void*);
383 389
384 } // namespace cc 390 } // namespace cc
385 391
386 #endif 392 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698