| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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 GLStringQuery_h | 5 #ifndef GLStringQuery_h |
| 6 #define GLStringQuery_h | 6 #define GLStringQuery_h |
| 7 | 7 |
| 8 #include "gpu/command_buffer/client/gles2_interface.h" | 8 #include "gpu/command_buffer/client/gles2_interface.h" |
| 9 #include "wtf/text/WTFString.h" | 9 #include "platform/wtf/text/WTFString.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 // Performs a query for a string on GLES2Interface and returns a WTF::String. If | 13 // Performs a query for a string on GLES2Interface and returns a WTF::String. If |
| 14 // it is unable to query the string, it wil return an empty WTF::String. | 14 // it is unable to query the string, it wil return an empty WTF::String. |
| 15 class GLStringQuery { | 15 class GLStringQuery { |
| 16 public: | 16 public: |
| 17 struct ProgramInfoLog { | 17 struct ProgramInfoLog { |
| 18 static void LengthFunction(gpu::gles2::GLES2Interface* gl, | 18 static void LengthFunction(gpu::gles2::GLES2Interface* gl, |
| 19 GLuint id, | 19 GLuint id, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 DCHECK_EQ(returned_length + 1, length); | 80 DCHECK_EQ(returned_length + 1, length); |
| 81 return String(name_impl.Release()); | 81 return String(name_impl.Release()); |
| 82 } | 82 } |
| 83 | 83 |
| 84 private: | 84 private: |
| 85 gpu::gles2::GLES2Interface* gl_; | 85 gpu::gles2::GLES2Interface* gl_; |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 } // namespace blink | 88 } // namespace blink |
| 89 #endif // GLStringQuery_h | 89 #endif // GLStringQuery_h |
| OLD | NEW |