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 class GraphicsContext3D; | 42 class GraphicsContext3D; |
43 class WebGLLayerChromiumRateLimitTask; | 43 class WebGLLayerChromiumRateLimitTask; |
44 | 44 |
45 // A Layer containing a WebGL canvas | 45 // A Layer containing a WebGL canvas |
46 class WebGLLayerChromium : public CanvasLayerChromium { | 46 class WebGLLayerChromium : public CanvasLayerChromium { |
47 public: | 47 public: |
48 static PassRefPtr<WebGLLayerChromium> create(GraphicsLayerChromium* owner =
0); | 48 static PassRefPtr<WebGLLayerChromium> create(GraphicsLayerChromium* owner =
0); |
49 | 49 |
50 virtual ~WebGLLayerChromium(); | 50 virtual ~WebGLLayerChromium(); |
51 | 51 |
52 virtual bool drawsContent() const { return m_context; } | 52 virtual bool drawsContent() const; |
53 virtual void updateCompositorResources(); | 53 virtual void updateCompositorResources(); |
54 void setTextureUpdated(); | 54 void setTextureUpdated(); |
55 | 55 |
56 void setContext(const GraphicsContext3D* context); | 56 void setContext(const GraphicsContext3D* context); |
57 GraphicsContext3D* context() { return m_context; } | 57 GraphicsContext3D* context() { return m_context; } |
58 | 58 |
59 virtual void setLayerRenderer(LayerRendererChromium*); | 59 virtual void setLayerRenderer(LayerRendererChromium*); |
60 | 60 |
61 protected: | 61 protected: |
62 virtual const char* layerTypeAsString() const { return "WebGLLayer"; } | 62 virtual const char* layerTypeAsString() const { return "WebGLLayer"; } |
(...skipping 10 matching lines...) Expand all Loading... |
73 GraphicsContext3D* m_context; | 73 GraphicsContext3D* m_context; |
74 bool m_contextSupportsRateLimitingExtension; | 74 bool m_contextSupportsRateLimitingExtension; |
75 Timer<WebGLLayerChromium> m_rateLimitingTimer; | 75 Timer<WebGLLayerChromium> m_rateLimitingTimer; |
76 bool m_textureUpdated; | 76 bool m_textureUpdated; |
77 }; | 77 }; |
78 | 78 |
79 } | 79 } |
80 #endif // USE(ACCELERATED_COMPOSITING) | 80 #endif // USE(ACCELERATED_COMPOSITING) |
81 | 81 |
82 #endif | 82 #endif |
OLD | NEW |