OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TEXTURE_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <list> | 9 #include <list> |
10 #include <set> | 10 #include <set> |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 memory_tracker_managed_->GetMemRepresented() + | 673 memory_tracker_managed_->GetMemRepresented() + |
674 memory_tracker_unmanaged_->GetMemRepresented(); | 674 memory_tracker_unmanaged_->GetMemRepresented(); |
675 } | 675 } |
676 | 676 |
677 void SetLevelImage( | 677 void SetLevelImage( |
678 TextureRef* ref, | 678 TextureRef* ref, |
679 GLenum target, | 679 GLenum target, |
680 GLint level, | 680 GLint level, |
681 gfx::GLImage* image); | 681 gfx::GLImage* image); |
682 | 682 |
| 683 size_t GetSignatureSize() const; |
| 684 |
683 void AddToSignature( | 685 void AddToSignature( |
684 TextureRef* ref, | 686 TextureRef* ref, |
685 GLenum target, | 687 GLenum target, |
686 GLint level, | 688 GLint level, |
687 std::string* signature) const; | 689 std::string* signature) const; |
688 | 690 |
689 void AddObserver(DestructionObserver* observer) { | 691 void AddObserver(DestructionObserver* observer) { |
690 destruction_observers_.push_back(observer); | 692 destruction_observers_.push_back(observer); |
691 } | 693 } |
692 | 694 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 private: | 824 private: |
823 DecoderTextureState* texture_state_; | 825 DecoderTextureState* texture_state_; |
824 base::TimeTicks begin_time_; | 826 base::TimeTicks begin_time_; |
825 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); | 827 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); |
826 }; | 828 }; |
827 | 829 |
828 } // namespace gles2 | 830 } // namespace gles2 |
829 } // namespace gpu | 831 } // namespace gpu |
830 | 832 |
831 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ | 833 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
OLD | NEW |