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

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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 WGC3Dsizei n, 630 WGC3Dsizei n,
631 const WGC3Denum* bufs); 631 const WGC3Denum* bufs);
632 632
633 // GL_ANGLE_instanced_arrays 633 // GL_ANGLE_instanced_arrays
634 virtual void drawArraysInstancedANGLE(WGC3Denum mode, WGC3Dint first, 634 virtual void drawArraysInstancedANGLE(WGC3Denum mode, WGC3Dint first,
635 WGC3Dsizei count, WGC3Dsizei primcount); 635 WGC3Dsizei count, WGC3Dsizei primcount);
636 virtual void drawElementsInstancedANGLE(WGC3Denum mode, WGC3Dsizei count, 636 virtual void drawElementsInstancedANGLE(WGC3Denum mode, WGC3Dsizei count,
637 WGC3Denum type, WGC3Dintptr offset, WGC3Dsizei primcount); 637 WGC3Denum type, WGC3Dintptr offset, WGC3Dsizei primcount);
638 virtual void vertexAttribDivisorANGLE(WGC3Duint index, WGC3Duint divisor); 638 virtual void vertexAttribDivisorANGLE(WGC3Duint index, WGC3Duint divisor);
639 639
640 // GL_CHROMIUM_map_image
641 virtual WGC3Duint createImageCHROMIUM(
642 WGC3Dsizei width, WGC3Dsizei height, WGC3Denum internalformat);
643 virtual void destroyImageCHROMIUM(WGC3Duint image_id);
644 virtual void getImageParameterivCHROMIUM(
645 WGC3Duint image_id, WGC3Denum pname, WGC3Dint* params);
646 virtual void* mapImageCHROMIUM(WGC3Duint image_id, WGC3Denum access);
647 virtual void unmapImageCHROMIUM(WGC3Duint image_id);
648
640 virtual GrGLInterface* createGrGLInterface(); 649 virtual GrGLInterface* createGrGLInterface();
641 650
642 private: 651 private:
643 // These are the same error codes as used by EGL. 652 // These are the same error codes as used by EGL.
644 enum Error { 653 enum Error {
645 SUCCESS = 0x3000, 654 SUCCESS = 0x3000,
646 BAD_ATTRIBUTE = 0x3004, 655 BAD_ATTRIBUTE = 0x3004,
647 CONTEXT_LOST = 0x300E 656 CONTEXT_LOST = 0x300E
648 }; 657 };
649 // WebGraphicsContext3DCommandBufferImpl configuration attributes. Those in 658 // WebGraphicsContext3DCommandBufferImpl configuration attributes. Those in
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 size_t min_transfer_buffer_size_; 768 size_t min_transfer_buffer_size_;
760 size_t max_transfer_buffer_size_; 769 size_t max_transfer_buffer_size_;
761 size_t mapped_memory_limit_; 770 size_t mapped_memory_limit_;
762 771
763 uint32_t flush_id_; 772 uint32_t flush_id_;
764 }; 773 };
765 774
766 } // namespace content 775 } // namespace content
767 776
768 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 777 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698