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

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

Issue 11412232: gpu: Add async upload functions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@ASYNC_uploads
Patch Set: Add autogenerated code. Created 8 years 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 // 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 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 599
600 virtual void bindTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint image_id); 600 virtual void bindTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint image_id);
601 virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint image_id); 601 virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint image_id);
602 602
603 virtual WebGLId createStreamTextureCHROMIUM(WebGLId texture); 603 virtual WebGLId createStreamTextureCHROMIUM(WebGLId texture);
604 virtual void destroyStreamTextureCHROMIUM(WebGLId texture); 604 virtual void destroyStreamTextureCHROMIUM(WebGLId texture);
605 605
606 virtual void* mapBufferCHROMIUM(WGC3Denum target, WGC3Denum access); 606 virtual void* mapBufferCHROMIUM(WGC3Denum target, WGC3Denum access);
607 virtual WGC3Dboolean unmapBufferCHROMIUM(WGC3Denum target); 607 virtual WGC3Dboolean unmapBufferCHROMIUM(WGC3Denum target);
608 608
609 // Async task functions.
reveman 2012/11/30 03:10:20 Async pixel transfer functions?
epennerAtGoogle 2012/11/30 04:14:22 Done.
610 virtual WGC3Dboolean asyncTexImage2DCHROMIUM(
611 WGC3Denum target,
612 WGC3Dint level,
613 WGC3Denum internalformat,
614 WGC3Dsizei width,
615 WGC3Dsizei height,
616 WGC3Dint border,
617 WGC3Denum format,
618 WGC3Denum type,
619 const void* pixels);
620 virtual WGC3Dboolean asyncTexSubImage2DCHROMIUM(
621 WGC3Denum target,
622 WGC3Dint level,
623 WGC3Dint xoffset,
624 WGC3Dint yoffset,
625 WGC3Dsizei width,
626 WGC3Dsizei height,
627 WGC3Denum format,
628 WGC3Denum type,
629 const void* pixels);
630
609 protected: 631 protected:
610 virtual GrGLInterface* onCreateGrGLInterface(); 632 virtual GrGLInterface* onCreateGrGLInterface();
611 633
612 private: 634 private:
613 // These are the same error codes as used by EGL. 635 // These are the same error codes as used by EGL.
614 enum Error { 636 enum Error {
615 SUCCESS = 0x3000, 637 SUCCESS = 0x3000,
616 BAD_ATTRIBUTE = 0x3004, 638 BAD_ATTRIBUTE = 0x3004,
617 CONTEXT_LOST = 0x300E 639 CONTEXT_LOST = 0x300E
618 }; 640 };
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 gpu::gles2::GLES2Implementation* gl_; 760 gpu::gles2::GLES2Implementation* gl_;
739 Error last_error_; 761 Error last_error_;
740 int frame_number_; 762 int frame_number_;
741 bool bind_generates_resources_; 763 bool bind_generates_resources_;
742 bool use_echo_for_swap_ack_; 764 bool use_echo_for_swap_ack_;
743 }; 765 };
744 766
745 } // namespace content 767 } // namespace content
746 768
747 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 769 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698