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

Side by Side Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h

Issue 19762004: Add multi-process GpuMemoryBuffer framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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 CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 WGC3Dsizei n, 633 WGC3Dsizei n,
634 const WGC3Denum* bufs); 634 const WGC3Denum* bufs);
635 635
636 // GL_ANGLE_instanced_arrays 636 // GL_ANGLE_instanced_arrays
637 virtual void drawArraysInstancedANGLE(WGC3Denum mode, WGC3Dint first, 637 virtual void drawArraysInstancedANGLE(WGC3Denum mode, WGC3Dint first,
638 WGC3Dsizei count, WGC3Dsizei primcount); 638 WGC3Dsizei count, WGC3Dsizei primcount);
639 virtual void drawElementsInstancedANGLE(WGC3Denum mode, WGC3Dsizei count, 639 virtual void drawElementsInstancedANGLE(WGC3Denum mode, WGC3Dsizei count,
640 WGC3Denum type, WGC3Dintptr offset, WGC3Dsizei primcount); 640 WGC3Denum type, WGC3Dintptr offset, WGC3Dsizei primcount);
641 virtual void vertexAttribDivisorANGLE(WGC3Duint index, WGC3Duint divisor); 641 virtual void vertexAttribDivisorANGLE(WGC3Duint index, WGC3Duint divisor);
642 642
643 // GL_CHROMIUM_map_image
644 virtual WGC3Duint createImageCHROMIUM(
645 WGC3Dsizei width, WGC3Dsizei height, WGC3Denum internalformat);
646 virtual void destroyImageCHROMIUM(WGC3Duint image_id);
647 virtual void getImageParameterivCHROMIUM(
648 WGC3Duint image_id, WGC3Denum pname, WGC3Dint* params);
649 virtual void* mapImageCHROMIUM(WGC3Duint image_id, WGC3Denum access);
650 virtual void unmapImageCHROMIUM(WGC3Duint image_id);
651
643 virtual GrGLInterface* createGrGLInterface(); 652 virtual GrGLInterface* createGrGLInterface();
644 653
645 private: 654 private:
646 // These are the same error codes as used by EGL. 655 // These are the same error codes as used by EGL.
647 enum Error { 656 enum Error {
648 SUCCESS = 0x3000, 657 SUCCESS = 0x3000,
649 BAD_ATTRIBUTE = 0x3004, 658 BAD_ATTRIBUTE = 0x3004,
650 CONTEXT_LOST = 0x300E 659 CONTEXT_LOST = 0x300E
651 }; 660 };
652 // WebGraphicsContext3DCommandBufferImpl configuration attributes. Those in 661 // WebGraphicsContext3DCommandBufferImpl configuration attributes. Those in
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 size_t min_transfer_buffer_size_; 771 size_t min_transfer_buffer_size_;
763 size_t max_transfer_buffer_size_; 772 size_t max_transfer_buffer_size_;
764 size_t mapped_memory_limit_; 773 size_t mapped_memory_limit_;
765 774
766 uint32_t flush_id_; 775 uint32_t flush_id_;
767 }; 776 };
768 777
769 } // namespace content 778 } // namespace content
770 779
771 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 780 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698