Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
|
reveman
2016/02/19 19:15:39
nit: Remove " (c)". Just "Copyright 2016" in new f
liberato (no reviews please)
2016/02/19 19:48:11
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GL_STREAM_TEXTURE_IMAGE_H_ | |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_GL_STREAM_TEXTURE_IMAGE_H_ | |
| 7 | |
| 8 #include "ui/gl/gl_image.h" | |
| 9 | |
| 10 namespace gpu { | |
| 11 namespace gles2 { | |
| 12 | |
| 13 // Specialization of GLImage that allows us to support (stream) textures | |
| 14 // that supply a texture matrix. | |
| 15 class GL_EXPORT GLStreamTextureImage : public gl::GLImage { | |
| 16 public: | |
| 17 GLStreamTextureImage() {} | |
|
reveman
2016/02/19 19:15:39
nit: don't think you need this if you make GetText
liberato (no reviews please)
2016/02/19 19:48:11
i thought so too, until it complained about lack o
| |
| 18 | |
| 19 // Get the matrix | |
|
reveman
2016/02/19 19:15:39
nit: end with "." if this is the end of a comment
liberato (no reviews please)
2016/02/19 19:48:11
Done.
| |
| 20 // Copy the texture matrix for this image into |matrix|. | |
| 21 virtual void GetTextureMatrix(float matrix[16]); | |
|
reveman
2016/02/19 19:15:39
Pure virtual? ... = 0;
liberato (no reviews please)
2016/02/19 19:48:11
thanks, leftover from when i didn't want to do tha
| |
| 22 | |
| 23 protected: | |
| 24 virtual ~GLStreamTextureImage() {} | |
| 25 | |
| 26 private: | |
| 27 DISALLOW_COPY_AND_ASSIGN(GLStreamTextureImage); | |
| 28 }; | |
| 29 | |
| 30 } // namespace gles2 | |
| 31 } // namespace gpu | |
| 32 | |
| 33 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_STREAM_TEXTURE_IMAGE_H_ | |
| OLD | NEW |