OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // Sets whether this context should rate limit on damage to prevent too many
frames from | 72 // Sets whether this context should rate limit on damage to prevent too many
frames from |
73 // being queued up before the compositor gets a chance to run. Requires a no
n-nil client. | 73 // being queued up before the compositor gets a chance to run. Requires a no
n-nil client. |
74 // Defaults to false. | 74 // Defaults to false. |
75 void setRateLimitContext(bool); | 75 void setRateLimitContext(bool); |
76 | 76 |
77 // Code path for plugins which supply their own texture ID. | 77 // Code path for plugins which supply their own texture ID. |
78 void setTextureId(unsigned); | 78 void setTextureId(unsigned); |
79 | 79 |
80 virtual void setNeedsDisplayRect(const FloatRect&) OVERRIDE; | 80 virtual void setNeedsDisplayRect(const FloatRect&) OVERRIDE; |
81 | 81 |
| 82 virtual void setLayerTreeHost(CCLayerTreeHost*) OVERRIDE; |
82 virtual bool drawsContent() const OVERRIDE; | 83 virtual bool drawsContent() const OVERRIDE; |
83 virtual void update(CCTextureUpdater&, const CCOcclusionTracker*) OVERRIDE; | 84 virtual void update(CCTextureUpdater&, const CCOcclusionTracker*) OVERRIDE; |
84 virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE; | 85 virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE; |
85 | 86 |
86 protected: | 87 protected: |
87 explicit TextureLayerChromium(TextureLayerChromiumClient*); | 88 explicit TextureLayerChromium(TextureLayerChromiumClient*); |
88 | 89 |
89 private: | 90 private: |
90 TextureLayerChromiumClient* m_client; | 91 TextureLayerChromiumClient* m_client; |
91 | 92 |
92 bool m_flipped; | 93 bool m_flipped; |
93 FloatRect m_uvRect; | 94 FloatRect m_uvRect; |
94 bool m_premultipliedAlpha; | 95 bool m_premultipliedAlpha; |
95 bool m_rateLimitContext; | 96 bool m_rateLimitContext; |
96 bool m_contextLost; | 97 bool m_contextLost; |
97 | 98 |
98 unsigned m_textureId; | 99 unsigned m_textureId; |
99 }; | 100 }; |
100 | 101 |
101 } | 102 } |
102 #endif // USE(ACCELERATED_COMPOSITING) | 103 #endif // USE(ACCELERATED_COMPOSITING) |
103 | 104 |
104 #endif | 105 #endif |
OLD | NEW |