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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLSharedObject.h

Issue 2773843002: Fix state management of transform feedback buffers. (Closed)
Patch Set: Implemented proper attach/detach/unbind for WebGLTransformFeedback. Created 3 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 /* 1 /*
2 * Copyright (C) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 30 matching lines...) Expand all
41 WebGLContextGroup* ContextGroup() const { return context_group_; } 41 WebGLContextGroup* ContextGroup() const { return context_group_; }
42 42
43 virtual bool IsBuffer() const { return false; } 43 virtual bool IsBuffer() const { return false; }
44 virtual bool IsProgram() const { return false; } 44 virtual bool IsProgram() const { return false; }
45 virtual bool IsQuery() const { return false; } 45 virtual bool IsQuery() const { return false; }
46 virtual bool IsRenderbuffer() const { return false; } 46 virtual bool IsRenderbuffer() const { return false; }
47 virtual bool IsSampler() const { return false; } 47 virtual bool IsSampler() const { return false; }
48 virtual bool IsShader() const { return false; } 48 virtual bool IsShader() const { return false; }
49 virtual bool IsSync() const { return false; } 49 virtual bool IsSync() const { return false; }
50 virtual bool IsTexture() const { return false; } 50 virtual bool IsTexture() const { return false; }
51 virtual bool IsTransformFeedback() const { return false; }
52 51
53 bool Validate(const WebGLContextGroup* context_group, 52 bool Validate(const WebGLContextGroup* context_group,
54 const WebGLRenderingContextBase*) const final; 53 const WebGLRenderingContextBase*) const final;
55 54
56 DECLARE_VIRTUAL_TRACE(); 55 DECLARE_VIRTUAL_TRACE();
57 56
58 DECLARE_VIRTUAL_TRACE_WRAPPERS(); 57 DECLARE_VIRTUAL_TRACE_WRAPPERS();
59 58
60 protected: 59 protected:
61 explicit WebGLSharedObject(WebGLRenderingContextBase*); 60 explicit WebGLSharedObject(WebGLRenderingContextBase*);
62 61
63 bool HasGroupOrContext() const final { return context_group_; } 62 bool HasGroupOrContext() const final { return context_group_; }
64 63
65 uint32_t CurrentNumberOfContextLosses() const final; 64 uint32_t CurrentNumberOfContextLosses() const final;
66 65
67 gpu::gles2::GLES2Interface* GetAGLInterface() const final; 66 gpu::gles2::GLES2Interface* GetAGLInterface() const final;
68 67
69 private: 68 private:
70 TraceWrapperMember<WebGLContextGroup> context_group_; 69 TraceWrapperMember<WebGLContextGroup> context_group_;
71 }; 70 };
72 71
73 } // namespace blink 72 } // namespace blink
74 73
75 #endif // WebGLSharedObject_h 74 #endif // WebGLSharedObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698