OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 CCLayerImpl_h | 5 #ifndef CCLayerImpl_h |
6 #define CCLayerImpl_h | 6 #define CCLayerImpl_h |
7 | 7 |
8 #include "CCInputHandler.h" | 8 #include "CCInputHandler.h" |
9 #include "CCLayerAnimationController.h" | 9 #include "CCLayerAnimationController.h" |
10 #include "CCRenderSurface.h" | 10 #include "CCRenderSurface.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 void setBackgroundColor(SkColor); | 104 void setBackgroundColor(SkColor); |
105 SkColor backgroundColor() const { return m_backgroundColor; } | 105 SkColor backgroundColor() const { return m_backgroundColor; } |
106 | 106 |
107 void setFilters(const WebKit::WebFilterOperations&); | 107 void setFilters(const WebKit::WebFilterOperations&); |
108 const WebKit::WebFilterOperations& filters() const { return m_filters; } | 108 const WebKit::WebFilterOperations& filters() const { return m_filters; } |
109 | 109 |
110 void setBackgroundFilters(const WebKit::WebFilterOperations&); | 110 void setBackgroundFilters(const WebKit::WebFilterOperations&); |
111 const WebKit::WebFilterOperations& backgroundFilters() const { return m_back
groundFilters; } | 111 const WebKit::WebFilterOperations& backgroundFilters() const { return m_back
groundFilters; } |
112 | 112 |
| 113 void setFilter(SkImageFilter*); |
| 114 SkImageFilter* filter() const { return m_filter; } |
| 115 |
113 void setMasksToBounds(bool); | 116 void setMasksToBounds(bool); |
114 bool masksToBounds() const { return m_masksToBounds; } | 117 bool masksToBounds() const { return m_masksToBounds; } |
115 | 118 |
116 void setContentsOpaque(bool); | 119 void setContentsOpaque(bool); |
117 bool contentsOpaque() const { return m_contentsOpaque; } | 120 bool contentsOpaque() const { return m_contentsOpaque; } |
118 | 121 |
119 void setOpacity(float); | 122 void setOpacity(float); |
120 bool opacityIsAnimating() const; | 123 bool opacityIsAnimating() const; |
121 | 124 |
122 void setPosition(const FloatPoint&); | 125 void setPosition(const FloatPoint&); |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 | 358 |
356 // Debug borders. | 359 // Debug borders. |
357 SkColor m_debugBorderColor; | 360 SkColor m_debugBorderColor; |
358 float m_debugBorderWidth; | 361 float m_debugBorderWidth; |
359 | 362 |
360 // Debug layer name. | 363 // Debug layer name. |
361 std::string m_debugName; | 364 std::string m_debugName; |
362 | 365 |
363 WebKit::WebFilterOperations m_filters; | 366 WebKit::WebFilterOperations m_filters; |
364 WebKit::WebFilterOperations m_backgroundFilters; | 367 WebKit::WebFilterOperations m_backgroundFilters; |
| 368 SkImageFilter* m_filter; |
365 | 369 |
366 WebKit::WebTransformationMatrix m_drawTransform; | 370 WebKit::WebTransformationMatrix m_drawTransform; |
367 WebKit::WebTransformationMatrix m_screenSpaceTransform; | 371 WebKit::WebTransformationMatrix m_screenSpaceTransform; |
368 bool m_drawTransformIsAnimating; | 372 bool m_drawTransformIsAnimating; |
369 bool m_screenSpaceTransformIsAnimating; | 373 bool m_screenSpaceTransformIsAnimating; |
370 | 374 |
371 #ifndef NDEBUG | 375 #ifndef NDEBUG |
372 bool m_betweenWillDrawAndDidDraw; | 376 bool m_betweenWillDrawAndDidDraw; |
373 #endif | 377 #endif |
374 | 378 |
(...skipping 15 matching lines...) Expand all Loading... |
390 | 394 |
391 // Manages scrollbars for this layer | 395 // Manages scrollbars for this layer |
392 scoped_ptr<ScrollbarAnimationController> m_scrollbarAnimationController; | 396 scoped_ptr<ScrollbarAnimationController> m_scrollbarAnimationController; |
393 }; | 397 }; |
394 | 398 |
395 void sortLayers(std::vector<LayerImpl*>::iterator first, std::vector<LayerImpl*>
::iterator end, LayerSorter*); | 399 void sortLayers(std::vector<LayerImpl*>::iterator first, std::vector<LayerImpl*>
::iterator end, LayerSorter*); |
396 | 400 |
397 } | 401 } |
398 | 402 |
399 #endif // CCLayerImpl_h | 403 #endif // CCLayerImpl_h |
OLD | NEW |