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

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

Issue 2392313004: [wrapper-tracing] Add tracing to WebGLRenderingContextBase and friends (Closed)
Patch Set: Add WebGL2RenderingContextBase Created 4 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 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 570
571 unsigned maxVertexAttribs() const { return m_maxVertexAttribs; } 571 unsigned maxVertexAttribs() const { return m_maxVertexAttribs; }
572 572
573 // Eagerly finalize WebGLRenderingContextBase in order for it 573 // Eagerly finalize WebGLRenderingContextBase in order for it
574 // to (first) be able to detach its WebGLContextObjects, before 574 // to (first) be able to detach its WebGLContextObjects, before
575 // they're later swept and finalized. 575 // they're later swept and finalized.
576 EAGERLY_FINALIZE(); 576 EAGERLY_FINALIZE();
577 DECLARE_EAGER_FINALIZATION_OPERATOR_NEW(); 577 DECLARE_EAGER_FINALIZATION_OPERATOR_NEW();
578 DECLARE_VIRTUAL_TRACE(); 578 DECLARE_VIRTUAL_TRACE();
579 579
580 DECLARE_VIRTUAL_TRACE_WRAPPERS();
581
580 // Returns approximate gpu memory allocated per pixel. 582 // Returns approximate gpu memory allocated per pixel.
581 int externallyAllocatedBytesPerPixel() override; 583 int externallyAllocatedBytesPerPixel() override;
582 584
583 class TextureUnitState { 585 class TextureUnitState {
584 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 586 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
585 587
586 public: 588 public:
587 Member<WebGLTexture> m_texture2DBinding; 589 Member<WebGLTexture> m_texture2DBinding;
588 Member<WebGLTexture> m_textureCubeMapBinding; 590 Member<WebGLTexture> m_textureCubeMapBinding;
589 Member<WebGLTexture> m_texture3DBinding; 591 Member<WebGLTexture> m_texture3DBinding;
(...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after
1548 context, 1550 context,
1549 context->is3d(), 1551 context->is3d(),
1550 context.is3d()); 1552 context.is3d());
1551 1553
1552 } // namespace blink 1554 } // namespace blink
1553 1555
1554 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( 1556 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(
1555 blink::WebGLRenderingContextBase::TextureUnitState); 1557 blink::WebGLRenderingContextBase::TextureUnitState);
1556 1558
1557 #endif // WebGLRenderingContextBase_h 1559 #endif // WebGLRenderingContextBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698