| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |