| 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" |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 | 331 |
| 332 class FragmentShaderCheckerboard { | 332 class FragmentShaderCheckerboard { |
| 333 public: | 333 public: |
| 334 FragmentShaderCheckerboard(); | 334 FragmentShaderCheckerboard(); |
| 335 std::string getShaderString() const; | 335 std::string getShaderString() const; |
| 336 | 336 |
| 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 int colorLocation() const { return m_colorLocation; } |
| 341 private: | 342 private: |
| 342 int m_alphaLocation; | 343 int m_alphaLocation; |
| 343 int m_texTransformLocation; | 344 int m_texTransformLocation; |
| 344 int m_frequencyLocation; | 345 int m_frequencyLocation; |
| 346 int m_colorLocation; |
| 345 }; | 347 }; |
| 346 | 348 |
| 347 } // namespace cc | 349 } // namespace cc |
| 348 | 350 |
| 349 #endif // USE(ACCELERATED_COMPOSITING) | 351 #endif // USE(ACCELERATED_COMPOSITING) |
| 350 | 352 |
| 351 #endif | 353 #endif |
| OLD | NEW |