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

Side by Side Diff: cc/LayerChromium.h

Issue 10989003: Revert 158386 - Revert 158362 - Support high DPI scrollbar on top level web frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « cc/CCScrollbarLayerImpl.cpp ('k') | cc/LayerChromium.cpp » ('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 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 const WebKit::WebTransformationMatrix& screenSpaceTransform() const { return m_screenSpaceTransform; } 225 const WebKit::WebTransformationMatrix& screenSpaceTransform() const { return m_screenSpaceTransform; }
226 void setScreenSpaceTransform(const WebKit::WebTransformationMatrix& matrix) { m_screenSpaceTransform = matrix; } 226 void setScreenSpaceTransform(const WebKit::WebTransformationMatrix& matrix) { m_screenSpaceTransform = matrix; }
227 const IntRect& drawableContentRect() const { return m_drawableContentRect; } 227 const IntRect& drawableContentRect() const { return m_drawableContentRect; }
228 void setDrawableContentRect(const IntRect& rect) { m_drawableContentRect = r ect; } 228 void setDrawableContentRect(const IntRect& rect) { m_drawableContentRect = r ect; }
229 // The contentsScale converts from logical, non-page-scaled pixels to target pixels. 229 // The contentsScale converts from logical, non-page-scaled pixels to target pixels.
230 // The contentsScale is 1 for the root layer as it is already in physical pi xels. 230 // The contentsScale is 1 for the root layer as it is already in physical pi xels.
231 float contentsScale() const { return m_contentsScale; } 231 float contentsScale() const { return m_contentsScale; }
232 void setContentsScale(float); 232 void setContentsScale(float);
233 233
234 // When true, the layer's contents are not scaled by the current page scale factor. 234 // When true, the layer's contents are not scaled by the current page scale factor.
235 // setBoundsContainPageScale recursively sets the value on all child layers.
235 void setBoundsContainPageScale(bool); 236 void setBoundsContainPageScale(bool);
236 bool boundsContainPageScale() const { return m_boundsContainPageScale; } 237 bool boundsContainPageScale() const { return m_boundsContainPageScale; }
237 238
238 // Returns true if any of the layer's descendants has content to draw. 239 // Returns true if any of the layer's descendants has content to draw.
239 bool descendantDrawsContent(); 240 bool descendantDrawsContent();
240 241
241 CCLayerTreeHost* layerTreeHost() const { return m_layerTreeHost; } 242 CCLayerTreeHost* layerTreeHost() const { return m_layerTreeHost; }
242 243
243 // Set the priority of all desired textures in this layer. 244 // Set the priority of all desired textures in this layer.
244 virtual void setTexturePriorities(const CCPriorityCalculator&) { } 245 virtual void setTexturePriorities(const CCPriorityCalculator&) { }
(...skipping 21 matching lines...) Expand all
266 virtual ScrollbarLayerChromium* toScrollbarLayerChromium(); 267 virtual ScrollbarLayerChromium* toScrollbarLayerChromium();
267 268
268 protected: 269 protected:
269 friend class CCLayerImpl; 270 friend class CCLayerImpl;
270 friend class TreeSynchronizer; 271 friend class TreeSynchronizer;
271 272
272 LayerChromium(); 273 LayerChromium();
273 274
274 void setNeedsCommit(); 275 void setNeedsCommit();
275 276
277 IntRect layerRectToContentRect(const WebKit::WebRect& layerRect);
278
276 // This flag is set when layer need repainting/updating. 279 // This flag is set when layer need repainting/updating.
277 bool m_needsDisplay; 280 bool m_needsDisplay;
278 281
279 // Tracks whether this layer may have changed stacking order with its siblin gs. 282 // Tracks whether this layer may have changed stacking order with its siblin gs.
280 bool m_stackingOrderChanged; 283 bool m_stackingOrderChanged;
281 284
282 // The update rect is the region of the compositor resource that was actuall y updated by the compositor. 285 // The update rect is the region of the compositor resource that was actuall y updated by the compositor.
283 // For layers that may do updating outside the compositor's control (i.e. pl ugin layers), this information 286 // For layers that may do updating outside the compositor's control (i.e. pl ugin layers), this information
284 // is not available and the update rect will remain empty. 287 // is not available and the update rect will remain empty.
285 // Note this rect is in layer space (not content space). 288 // Note this rect is in layer space (not content space).
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; 378 WebKit::WebAnimationDelegate* m_layerAnimationDelegate;
376 WebKit::WebLayerScrollClient* m_layerScrollClient; 379 WebKit::WebLayerScrollClient* m_layerScrollClient;
377 }; 380 };
378 381
379 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr omium> >::iterator, void*); 382 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr omium> >::iterator, void*);
380 383
381 } 384 }
382 #endif // USE(ACCELERATED_COMPOSITING) 385 #endif // USE(ACCELERATED_COMPOSITING)
383 386
384 #endif 387 #endif
OLDNEW
« no previous file with comments | « cc/CCScrollbarLayerImpl.cpp ('k') | cc/LayerChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698