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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 namespace WebCore { | 42 namespace WebCore { |
43 | 43 |
44 PassRefPtr<WebGLLayerChromium> WebGLLayerChromium::create(GraphicsLayerChromium*
owner) | 44 PassRefPtr<WebGLLayerChromium> WebGLLayerChromium::create(GraphicsLayerChromium*
owner) |
45 { | 45 { |
46 return adoptRef(new WebGLLayerChromium(owner)); | 46 return adoptRef(new WebGLLayerChromium(owner)); |
47 } | 47 } |
48 | 48 |
49 WebGLLayerChromium::WebGLLayerChromium(GraphicsLayerChromium* owner) | 49 WebGLLayerChromium::WebGLLayerChromium(GraphicsLayerChromium* owner) |
50 : CanvasLayerChromium(owner) | 50 : CanvasLayerChromium(owner) |
51 , m_context(0) | 51 , m_context(0) |
| 52 , m_textureId(0) |
| 53 , m_textureChanged(true) |
52 , m_contextSupportsRateLimitingExtension(false) | 54 , m_contextSupportsRateLimitingExtension(false) |
53 , m_rateLimitingTimer(this, &WebGLLayerChromium::rateLimitContext) | 55 , m_rateLimitingTimer(this, &WebGLLayerChromium::rateLimitContext) |
54 , m_textureUpdated(false) | 56 , m_textureUpdated(false) |
55 { | 57 { |
56 } | 58 } |
57 | 59 |
58 WebGLLayerChromium::~WebGLLayerChromium() | 60 WebGLLayerChromium::~WebGLLayerChromium() |
59 { | 61 { |
60 if (m_context && layerRenderer()) | 62 if (m_context && layerRenderer()) |
61 layerRenderer()->removeChildContext(m_context); | 63 layerRenderer()->removeChildContext(m_context); |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 174 |
173 if (!m_context) | 175 if (!m_context) |
174 return; | 176 return; |
175 | 177 |
176 Extensions3DChromium* extensions = static_cast<Extensions3DChromium*>(m_cont
ext->getExtensions()); | 178 Extensions3DChromium* extensions = static_cast<Extensions3DChromium*>(m_cont
ext->getExtensions()); |
177 extensions->rateLimitOffscreenContextCHROMIUM(); | 179 extensions->rateLimitOffscreenContextCHROMIUM(); |
178 } | 180 } |
179 | 181 |
180 } | 182 } |
181 #endif // USE(ACCELERATED_COMPOSITING) | 183 #endif // USE(ACCELERATED_COMPOSITING) |
OLD | NEW |