Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(597)

Side by Side Diff: gpu/command_buffer/service/texture_manager.h

Issue 593233002: Modified GPU command signature hash to use a binary representation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DCHECK signature size, fixed comments. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/renderbuffer_manager.cc ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698