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

Side by Side Diff: gpu/command_buffer/service/framebuffer_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
« no previous file with comments | « no previous file | gpu/command_buffer/service/framebuffer_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_FRAMEBUFFER_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 29 matching lines...) Expand all
40 RenderbufferManager* renderbuffer_manager, 40 RenderbufferManager* renderbuffer_manager,
41 TextureManager* texture_manager, 41 TextureManager* texture_manager,
42 bool cleared) = 0; 42 bool cleared) = 0;
43 virtual bool IsTexture(TextureRef* texture) const = 0; 43 virtual bool IsTexture(TextureRef* texture) const = 0;
44 virtual bool IsRenderbuffer( 44 virtual bool IsRenderbuffer(
45 Renderbuffer* renderbuffer) const = 0; 45 Renderbuffer* renderbuffer) const = 0;
46 virtual bool CanRenderTo() const = 0; 46 virtual bool CanRenderTo() const = 0;
47 virtual void DetachFromFramebuffer(Framebuffer* framebuffer) const = 0; 47 virtual void DetachFromFramebuffer(Framebuffer* framebuffer) const = 0;
48 virtual bool ValidForAttachmentType( 48 virtual bool ValidForAttachmentType(
49 GLenum attachment_type, uint32 max_color_attachments) = 0; 49 GLenum attachment_type, uint32 max_color_attachments) = 0;
50 virtual size_t GetSignatureSize(TextureManager* texture_manager) const = 0;
50 virtual void AddToSignature( 51 virtual void AddToSignature(
51 TextureManager* texture_manager, std::string* signature) const = 0; 52 TextureManager* texture_manager, std::string* signature) const = 0;
52 virtual void OnWillRenderTo() const = 0; 53 virtual void OnWillRenderTo() const = 0;
53 virtual void OnDidRenderTo() const = 0; 54 virtual void OnDidRenderTo() const = 0;
54 55
55 protected: 56 protected:
56 friend class base::RefCounted<Attachment>; 57 friend class base::RefCounted<Attachment>;
57 virtual ~Attachment() {} 58 virtual ~Attachment() {}
58 }; 59 };
59 60
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 typedef std::vector<TextureDetachObserver*> TextureDetachObserverVector; 308 typedef std::vector<TextureDetachObserver*> TextureDetachObserverVector;
308 TextureDetachObserverVector texture_detach_observers_; 309 TextureDetachObserverVector texture_detach_observers_;
309 310
310 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); 311 DISALLOW_COPY_AND_ASSIGN(FramebufferManager);
311 }; 312 };
312 313
313 } // namespace gles2 314 } // namespace gles2
314 } // namespace gpu 315 } // namespace gpu
315 316
316 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ 317 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/framebuffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698