OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 GPU_COMMAND_BUFFER_SERVICE_GL_STREAM_TEXTURE_IMAGE_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GL_STREAM_TEXTURE_IMAGE_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_GL_STREAM_TEXTURE_IMAGE_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_GL_STREAM_TEXTURE_IMAGE_H_ |
7 | 7 |
| 8 #include "gpu/gpu_export.h" |
8 #include "ui/gl/gl_image.h" | 9 #include "ui/gl/gl_image.h" |
9 | 10 |
10 namespace gpu { | 11 namespace gpu { |
11 namespace gles2 { | 12 namespace gles2 { |
12 | 13 |
13 // Specialization of GLImage that allows us to support (stream) textures | 14 // Specialization of GLImage that allows us to support (stream) textures |
14 // that supply a texture matrix. | 15 // that supply a texture matrix. |
15 class GPU_EXPORT GLStreamTextureImage : public gl::GLImage { | 16 class GPU_EXPORT GLStreamTextureImage : public gl::GLImage { |
16 public: | 17 public: |
17 GLStreamTextureImage() {} | 18 GLStreamTextureImage() {} |
18 | 19 |
19 // Get the matrix. | 20 // Get the matrix. |
20 // Copy the texture matrix for this image into |matrix|. | 21 // Copy the texture matrix for this image into |matrix|. |
21 virtual void GetTextureMatrix(float matrix[16]) = 0; | 22 virtual void GetTextureMatrix(float matrix[16]) = 0; |
22 | 23 |
23 protected: | 24 protected: |
24 ~GLStreamTextureImage() override {} | 25 ~GLStreamTextureImage() override {} |
25 | 26 |
26 private: | 27 private: |
27 DISALLOW_COPY_AND_ASSIGN(GLStreamTextureImage); | 28 DISALLOW_COPY_AND_ASSIGN(GLStreamTextureImage); |
28 }; | 29 }; |
29 | 30 |
30 } // namespace gles2 | 31 } // namespace gles2 |
31 } // namespace gpu | 32 } // namespace gpu |
32 | 33 |
33 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_STREAM_TEXTURE_IMAGE_H_ | 34 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_STREAM_TEXTURE_IMAGE_H_ |
OLD | NEW |