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

Side by Side Diff: cc/LayerChromium.h

Issue 10990004: 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, 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
« 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.
236 void setBoundsContainPageScale(bool); 235 void setBoundsContainPageScale(bool);
237 bool boundsContainPageScale() const { return m_boundsContainPageScale; } 236 bool boundsContainPageScale() const { return m_boundsContainPageScale; }
238 237
239 // Returns true if any of the layer's descendants has content to draw. 238 // Returns true if any of the layer's descendants has content to draw.
240 bool descendantDrawsContent(); 239 bool descendantDrawsContent();
241 240
242 CCLayerTreeHost* layerTreeHost() const { return m_layerTreeHost; } 241 CCLayerTreeHost* layerTreeHost() const { return m_layerTreeHost; }
243 242
244 // Set the priority of all desired textures in this layer. 243 // Set the priority of all desired textures in this layer.
245 virtual void setTexturePriorities(const CCPriorityCalculator&) { } 244 virtual void setTexturePriorities(const CCPriorityCalculator&) { }
(...skipping 21 matching lines...) Expand all
267 virtual ScrollbarLayerChromium* toScrollbarLayerChromium(); 266 virtual ScrollbarLayerChromium* toScrollbarLayerChromium();
268 267
269 protected: 268 protected:
270 friend class CCLayerImpl; 269 friend class CCLayerImpl;
271 friend class TreeSynchronizer; 270 friend class TreeSynchronizer;
272 271
273 LayerChromium(); 272 LayerChromium();
274 273
275 void setNeedsCommit(); 274 void setNeedsCommit();
276 275
277 IntRect layerRectToContentRect(const WebKit::WebRect& layerRect);
278
279 // This flag is set when layer need repainting/updating. 276 // This flag is set when layer need repainting/updating.
280 bool m_needsDisplay; 277 bool m_needsDisplay;
281 278
282 // Tracks whether this layer may have changed stacking order with its siblin gs. 279 // Tracks whether this layer may have changed stacking order with its siblin gs.
283 bool m_stackingOrderChanged; 280 bool m_stackingOrderChanged;
284 281
285 // The update rect is the region of the compositor resource that was actuall y updated by the compositor. 282 // The update rect is the region of the compositor resource that was actuall y updated by the compositor.
286 // For layers that may do updating outside the compositor's control (i.e. pl ugin layers), this information 283 // For layers that may do updating outside the compositor's control (i.e. pl ugin layers), this information
287 // is not available and the update rect will remain empty. 284 // is not available and the update rect will remain empty.
288 // Note this rect is in layer space (not content space). 285 // Note this rect is in layer space (not content space).
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; 375 WebKit::WebAnimationDelegate* m_layerAnimationDelegate;
379 WebKit::WebLayerScrollClient* m_layerScrollClient; 376 WebKit::WebLayerScrollClient* m_layerScrollClient;
380 }; 377 };
381 378
382 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr omium> >::iterator, void*); 379 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr omium> >::iterator, void*);
383 380
384 } 381 }
385 #endif // USE(ACCELERATED_COMPOSITING) 382 #endif // USE(ACCELERATED_COMPOSITING)
386 383
387 #endif 384 #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