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

Side by Side Diff: gpu/command_buffer/service/renderbuffer_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_RENDERBUFFER_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_RENDERBUFFER_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_RENDERBUFFER_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_RENDERBUFFER_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void MarkAsValid() { 62 void MarkAsValid() {
63 has_been_bound_ = true; 63 has_been_bound_ = true;
64 } 64 }
65 65
66 bool IsValid() const { 66 bool IsValid() const {
67 return has_been_bound_ && !IsDeleted(); 67 return has_been_bound_ && !IsDeleted();
68 } 68 }
69 69
70 size_t EstimatedSize(); 70 size_t EstimatedSize();
71 71
72 size_t GetSignatureSize() const;
72 void AddToSignature(std::string* signature) const; 73 void AddToSignature(std::string* signature) const;
73 74
74 private: 75 private:
75 friend class RenderbufferManager; 76 friend class RenderbufferManager;
76 friend class base::RefCounted<Renderbuffer>; 77 friend class base::RefCounted<Renderbuffer>;
77 78
78 ~Renderbuffer(); 79 ~Renderbuffer();
79 80
80 void set_cleared(bool cleared) { 81 void set_cleared(bool cleared) {
81 cleared_ = cleared; 82 cleared_ = cleared;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 typedef base::hash_map<GLuint, scoped_refptr<Renderbuffer> > RenderbufferMap; 196 typedef base::hash_map<GLuint, scoped_refptr<Renderbuffer> > RenderbufferMap;
196 RenderbufferMap renderbuffers_; 197 RenderbufferMap renderbuffers_;
197 198
198 DISALLOW_COPY_AND_ASSIGN(RenderbufferManager); 199 DISALLOW_COPY_AND_ASSIGN(RenderbufferManager);
199 }; 200 };
200 201
201 } // namespace gles2 202 } // namespace gles2
202 } // namespace gpu 203 } // namespace gpu
203 204
204 #endif // GPU_COMMAND_BUFFER_SERVICE_RENDERBUFFER_MANAGER_H_ 205 #endif // GPU_COMMAND_BUFFER_SERVICE_RENDERBUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/framebuffer_manager.cc ('k') | gpu/command_buffer/service/renderbuffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698