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

Side by Side Diff: Source/core/rendering/style/RenderStyle.h

Issue 183103007: Implement will-change-based GPU rasterization hint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move hint from WebLayer to WebContentLayer Created 6 years, 9 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 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 952
953 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh eritedData->m_touchAction); } 953 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh eritedData->m_touchAction); }
954 TouchActionDelay touchActionDelay() const { return static_cast<TouchActionDe lay>(rareInheritedData->m_touchActionDelay); } 954 TouchActionDelay touchActionDelay() const { return static_cast<TouchActionDe lay>(rareInheritedData->m_touchActionDelay); }
955 955
956 ScrollBehavior scrollBehavior() const { return static_cast<ScrollBehavior>(r areNonInheritedData->m_scrollBehavior); } 956 ScrollBehavior scrollBehavior() const { return static_cast<ScrollBehavior>(r areNonInheritedData->m_scrollBehavior); }
957 957
958 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn heritedData->m_willChange->m_properties; } 958 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn heritedData->m_willChange->m_properties; }
959 bool willChangeContents() const { return rareNonInheritedData->m_willChange- >m_contents; } 959 bool willChangeContents() const { return rareNonInheritedData->m_willChange- >m_contents; }
960 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC hange->m_scrollPosition; } 960 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC hange->m_scrollPosition; }
961 bool hasWillChangeCompositingHint() const; 961 bool hasWillChangeCompositingHint() const;
962 bool hasWillChangeGpuRasterizationHint() const;
962 963
963 // attribute setter methods 964 // attribute setter methods
964 965
965 void setDisplay(EDisplay v) { noninherited_flags._effectiveDisplay = v; } 966 void setDisplay(EDisplay v) { noninherited_flags._effectiveDisplay = v; }
966 void setOriginalDisplay(EDisplay v) { noninherited_flags._originalDisplay = v; } 967 void setOriginalDisplay(EDisplay v) { noninherited_flags._originalDisplay = v; }
967 void setPosition(EPosition v) { noninherited_flags._position = v; } 968 void setPosition(EPosition v) { noninherited_flags._position = v; }
968 void setFloating(EFloat v) { noninherited_flags._floating = v; } 969 void setFloating(EFloat v) { noninherited_flags._floating = v; }
969 970
970 void setLeft(Length v) { SET_VAR(surround, offset.m_left, v); } 971 void setLeft(Length v) { SET_VAR(surround, offset.m_left, v); }
971 void setRight(Length v) { SET_VAR(surround, offset.m_right, v); } 972 void setRight(Length v) { SET_VAR(surround, offset.m_right, v); }
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after
1881 } 1882 }
1882 1883
1883 inline bool RenderStyle::hasPseudoElementStyle() const 1884 inline bool RenderStyle::hasPseudoElementStyle() const
1884 { 1885 {
1885 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; 1886 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK;
1886 } 1887 }
1887 1888
1888 } // namespace WebCore 1889 } // namespace WebCore
1889 1890
1890 #endif // RenderStyle_h 1891 #endif // RenderStyle_h
OLDNEW
« no previous file with comments | « Source/core/rendering/compositing/CompositingReasonFinder.cpp ('k') | Source/core/rendering/style/RenderStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698