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

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

Issue 1870483003: Add command buffer support for GL_RGB CHROMIUM image emulation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing braces. Created 4 years, 8 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_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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual bool Is3D() const = 0; 55 virtual bool Is3D() const = 0;
56 virtual bool CanRenderTo(const FeatureInfo* feature_info) const = 0; 56 virtual bool CanRenderTo(const FeatureInfo* feature_info) const = 0;
57 virtual void DetachFromFramebuffer(Framebuffer* framebuffer) const = 0; 57 virtual void DetachFromFramebuffer(Framebuffer* framebuffer) const = 0;
58 virtual bool ValidForAttachmentType(GLenum attachment_type, 58 virtual bool ValidForAttachmentType(GLenum attachment_type,
59 ContextType context_type, 59 ContextType context_type,
60 uint32_t max_color_attachments) = 0; 60 uint32_t max_color_attachments) = 0;
61 virtual size_t GetSignatureSize(TextureManager* texture_manager) const = 0; 61 virtual size_t GetSignatureSize(TextureManager* texture_manager) const = 0;
62 virtual void AddToSignature( 62 virtual void AddToSignature(
63 TextureManager* texture_manager, std::string* signature) const = 0; 63 TextureManager* texture_manager, std::string* signature) const = 0;
64 virtual bool FormsFeedbackLoop(TextureRef* texture, GLint level) const = 0; 64 virtual bool FormsFeedbackLoop(TextureRef* texture, GLint level) const = 0;
65 virtual bool EmulatingRGB() const = 0;
65 66
66 protected: 67 protected:
67 friend class base::RefCounted<Attachment>; 68 friend class base::RefCounted<Attachment>;
68 virtual ~Attachment() {} 69 virtual ~Attachment() {}
69 }; 70 };
70 71
71 Framebuffer(FramebufferManager* manager, GLuint service_id); 72 Framebuffer(FramebufferManager* manager, GLuint service_id);
72 73
73 GLuint service_id() const { 74 GLuint service_id() const {
74 return service_id_; 75 return service_id_;
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 320
320 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; 321 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_;
321 322
322 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); 323 DISALLOW_COPY_AND_ASSIGN(FramebufferManager);
323 }; 324 };
324 325
325 } // namespace gles2 326 } // namespace gles2
326 } // namespace gpu 327 } // namespace gpu
327 328
328 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ 329 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/capabilities.h ('k') | gpu/command_buffer/service/framebuffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698