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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 virtual void setLayerRenderer(LayerRendererChromium*); | 60 virtual void setLayerRenderer(LayerRendererChromium*); |
61 | 61 |
62 protected: | 62 protected: |
63 virtual const char* layerTypeAsString() const { return "WebGLLayer"; } | 63 virtual const char* layerTypeAsString() const { return "WebGLLayer"; } |
64 | 64 |
65 private: | 65 private: |
66 explicit WebGLLayerChromium(GraphicsLayerChromium* owner); | 66 explicit WebGLLayerChromium(GraphicsLayerChromium* owner); |
67 friend class WebGLLayerChromiumRateLimitTask; | 67 friend class WebGLLayerChromiumRateLimitTask; |
68 | 68 |
| 69 virtual unsigned textureId() const { return m_textureId; } |
69 void rateLimitContext(Timer<WebGLLayerChromium>*); | 70 void rateLimitContext(Timer<WebGLLayerChromium>*); |
70 | 71 |
71 // GraphicsContext3D::platformLayer has a side-effect of assigning itself | 72 // GraphicsContext3D::platformLayer has a side-effect of assigning itself |
72 // to the layer. Because of that GraphicsContext3D's destructor will reset | 73 // to the layer. Because of that GraphicsContext3D's destructor will reset |
73 // layer's context to 0. | 74 // layer's context to 0. |
74 GraphicsContext3D* m_context; | 75 GraphicsContext3D* m_context; |
| 76 unsigned m_textureId; |
| 77 bool m_textureChanged; |
75 bool m_contextSupportsRateLimitingExtension; | 78 bool m_contextSupportsRateLimitingExtension; |
76 Timer<WebGLLayerChromium> m_rateLimitingTimer; | 79 Timer<WebGLLayerChromium> m_rateLimitingTimer; |
77 bool m_textureUpdated; | 80 bool m_textureUpdated; |
78 }; | 81 }; |
79 | 82 |
80 } | 83 } |
81 #endif // USE(ACCELERATED_COMPOSITING) | 84 #endif // USE(ACCELERATED_COMPOSITING) |
82 | 85 |
83 #endif | 86 #endif |
OLD | NEW |