| 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 ShaderChromium_h | 5 #ifndef ShaderChromium_h |
| 6 #define ShaderChromium_h | 6 #define ShaderChromium_h |
| 7 | 7 |
| 8 #if USE(ACCELERATED_COMPOSITING) | 8 #if USE(ACCELERATED_COMPOSITING) |
| 9 | 9 |
| 10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 namespace WebKit { | 13 namespace WebKit { |
| 14 class WebGraphicsContext3D; | 14 class WebGraphicsContext3D; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace WebCore { | 17 namespace cc { |
| 18 | 18 |
| 19 class VertexShaderPosTex { | 19 class VertexShaderPosTex { |
| 20 public: | 20 public: |
| 21 VertexShaderPosTex(); | 21 VertexShaderPosTex(); |
| 22 | 22 |
| 23 void init(WebKit::WebGraphicsContext3D*, unsigned program, bool usingBindUni
form, int* baseUniformIndex); | 23 void init(WebKit::WebGraphicsContext3D*, unsigned program, bool usingBindUni
form, int* baseUniformIndex); |
| 24 std::string getShaderString() const; | 24 std::string getShaderString() const; |
| 25 | 25 |
| 26 int matrixLocation() const { return m_matrixLocation; } | 26 int matrixLocation() const { return m_matrixLocation; } |
| 27 | 27 |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 void init(WebKit::WebGraphicsContext3D*, unsigned program, bool usingBindUni
form, int* baseUniformIndex); | 337 void init(WebKit::WebGraphicsContext3D*, unsigned program, bool usingBindUni
form, int* baseUniformIndex); |
| 338 int alphaLocation() const { return m_alphaLocation; } | 338 int alphaLocation() const { return m_alphaLocation; } |
| 339 int texTransformLocation() const { return m_texTransformLocation; } | 339 int texTransformLocation() const { return m_texTransformLocation; } |
| 340 int frequencyLocation() const { return m_frequencyLocation; } | 340 int frequencyLocation() const { return m_frequencyLocation; } |
| 341 private: | 341 private: |
| 342 int m_alphaLocation; | 342 int m_alphaLocation; |
| 343 int m_texTransformLocation; | 343 int m_texTransformLocation; |
| 344 int m_frequencyLocation; | 344 int m_frequencyLocation; |
| 345 }; | 345 }; |
| 346 | 346 |
| 347 } // namespace WebCore | 347 } // namespace cc |
| 348 | 348 |
| 349 #endif // USE(ACCELERATED_COMPOSITING) | 349 #endif // USE(ACCELERATED_COMPOSITING) |
| 350 | 350 |
| 351 #endif | 351 #endif |
| OLD | NEW |