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

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

Issue 10543125: gpu: Add support for GLX_EXT_texture_from_pixmap extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 virtual void endQueryEXT(WGC3Denum target); 555 virtual void endQueryEXT(WGC3Denum target);
556 virtual void getQueryivEXT( 556 virtual void getQueryivEXT(
557 WGC3Denum target, WGC3Denum pname, WGC3Dint* params); 557 WGC3Denum target, WGC3Denum pname, WGC3Dint* params);
558 virtual void getQueryObjectuivEXT( 558 virtual void getQueryObjectuivEXT(
559 WebGLId query, WGC3Denum pname, WGC3Duint* params); 559 WebGLId query, WGC3Denum pname, WGC3Duint* params);
560 560
561 virtual void copyTextureCHROMIUM(WGC3Denum target, WebGLId source_id, 561 virtual void copyTextureCHROMIUM(WGC3Denum target, WebGLId source_id,
562 WebGLId dest_id, WGC3Dint level, 562 WebGLId dest_id, WGC3Dint level,
563 WGC3Denum internal_format); 563 WGC3Denum internal_format);
564 564
565 virtual void texImagePixmap2DCHROMIUM(WGC3Denum target, WGC3Duint pixmapId);
566
565 protected: 567 protected:
566 virtual GrGLInterface* onCreateGrGLInterface(); 568 virtual GrGLInterface* onCreateGrGLInterface();
567 569
568 private: 570 private:
569 // These are the same error codes as used by EGL. 571 // These are the same error codes as used by EGL.
570 enum Error { 572 enum Error {
571 SUCCESS = 0x3000, 573 SUCCESS = 0x3000,
572 BAD_ATTRIBUTE = 0x3004, 574 BAD_ATTRIBUTE = 0x3004,
573 CONTEXT_LOST = 0x300E 575 CONTEXT_LOST = 0x300E
574 }; 576 };
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 CommandBufferProxy* command_buffer_; 691 CommandBufferProxy* command_buffer_;
690 gpu::gles2::GLES2CmdHelper* gles2_helper_; 692 gpu::gles2::GLES2CmdHelper* gles2_helper_;
691 gpu::TransferBuffer* transfer_buffer_; 693 gpu::TransferBuffer* transfer_buffer_;
692 gpu::gles2::GLES2Implementation* gl_; 694 gpu::gles2::GLES2Implementation* gl_;
693 Error last_error_; 695 Error last_error_;
694 int frame_number_; 696 int frame_number_;
695 bool bind_generates_resources_; 697 bool bind_generates_resources_;
696 }; 698 };
697 699
698 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 700 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698