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

Side by Side Diff: cc/LayerChromium.h

Issue 10909255: Support high DPI scrollbar on top level web frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only apply page scale factor to layers within and including root scroll layer. Created 8 years, 3 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 5
6 #ifndef LayerChromium_h 6 #ifndef LayerChromium_h
7 #define LayerChromium_h 7 #define LayerChromium_h
8 8
9 #if USE(ACCELERATED_COMPOSITING) 9 #if USE(ACCELERATED_COMPOSITING)
10 10
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 virtual ScrollbarLayerChromium* toScrollbarLayerChromium() { return 0; } 257 virtual ScrollbarLayerChromium* toScrollbarLayerChromium() { return 0; }
258 258
259 protected: 259 protected:
260 friend class CCLayerImpl; 260 friend class CCLayerImpl;
261 friend class TreeSynchronizer; 261 friend class TreeSynchronizer;
262 262
263 LayerChromium(); 263 LayerChromium();
264 264
265 void setNeedsCommit(); 265 void setNeedsCommit();
266 266
267 IntRect layerRectToContentRect(const WebKit::WebRect& layerRect);
268
267 // This flag is set when layer need repainting/updating. 269 // This flag is set when layer need repainting/updating.
268 bool m_needsDisplay; 270 bool m_needsDisplay;
269 271
270 // Tracks whether this layer may have changed stacking order with its siblin gs. 272 // Tracks whether this layer may have changed stacking order with its siblin gs.
271 bool m_stackingOrderChanged; 273 bool m_stackingOrderChanged;
272 274
273 // The update rect is the region of the compositor resource that was actuall y updated by the compositor. 275 // The update rect is the region of the compositor resource that was actuall y updated by the compositor.
274 // For layers that may do updating outside the compositor's control (i.e. pl ugin layers), this information 276 // For layers that may do updating outside the compositor's control (i.e. pl ugin layers), this information
275 // is not available and the update rect will remain empty. 277 // is not available and the update rect will remain empty.
276 // Note this rect is in layer space (not content space). 278 // Note this rect is in layer space (not content space).
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; 368 WebKit::WebAnimationDelegate* m_layerAnimationDelegate;
367 WebKit::WebLayerScrollClient* m_layerScrollClient; 369 WebKit::WebLayerScrollClient* m_layerScrollClient;
368 }; 370 };
369 371
370 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr omium> >::iterator, void*); 372 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr omium> >::iterator, void*);
371 373
372 } 374 }
373 #endif // USE(ACCELERATED_COMPOSITING) 375 #endif // USE(ACCELERATED_COMPOSITING)
374 376
375 #endif 377 #endif
OLDNEW
« cc/CCLayerTreeHost.cpp ('K') | « cc/CCScrollbarLayerImpl.cpp ('k') | cc/LayerChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698