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

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

Issue 12806006: Add EncodeBackbufferCHROMIUM support to GLES2 command stream (Closed) Base URL: https://chromium.googlesource.com/chromium/src@yuv_2
Patch Set: Removed extraneous file. Created 7 years, 9 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
« no previous file with comments | « no previous file | content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 WGC3Denum format, 629 WGC3Denum format,
630 WGC3Denum type, 630 WGC3Denum type,
631 const void* pixels); 631 const void* pixels);
632 virtual void waitAsyncTexImage2DCHROMIUM(WGC3Denum target); 632 virtual void waitAsyncTexImage2DCHROMIUM(WGC3Denum target);
633 633
634 // GL_EXT_draw_buffers 634 // GL_EXT_draw_buffers
635 virtual void drawBuffersEXT( 635 virtual void drawBuffersEXT(
636 WGC3Dsizei n, 636 WGC3Dsizei n,
637 const WGC3Denum* bufs); 637 const WGC3Denum* bufs);
638 638
639 virtual void encodeBackbufferCHROMIUM();
640
639 protected: 641 protected:
640 virtual GrGLInterface* onCreateGrGLInterface(); 642 virtual GrGLInterface* onCreateGrGLInterface();
641 643
642 private: 644 private:
643 // These are the same error codes as used by EGL. 645 // These are the same error codes as used by EGL.
644 enum Error { 646 enum Error {
645 SUCCESS = 0x3000, 647 SUCCESS = 0x3000,
646 BAD_ATTRIBUTE = 0x3004, 648 BAD_ATTRIBUTE = 0x3004,
647 CONTEXT_LOST = 0x300E 649 CONTEXT_LOST = 0x300E
648 }; 650 };
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 gpu::gles2::GLES2Interface* trace_gl_; 772 gpu::gles2::GLES2Interface* trace_gl_;
771 Error last_error_; 773 Error last_error_;
772 int frame_number_; 774 int frame_number_;
773 bool bind_generates_resources_; 775 bool bind_generates_resources_;
774 bool use_echo_for_swap_ack_; 776 bool use_echo_for_swap_ack_;
775 }; 777 };
776 778
777 } // namespace content 779 } // namespace content
778 780
779 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 781 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698