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

Side by Side Diff: content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h

Issue 8512005: Plumb through EGL_NV_post_sub_buffer and GLX_MESA_copy_sub_buffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 years, 1 month 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
« no previous file with comments | « no previous file | content/renderer/gpu/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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
6 #define CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 6 #define CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual bool setParentContext(WebGraphicsContext3D* parent_context); 72 virtual bool setParentContext(WebGraphicsContext3D* parent_context);
73 73
74 virtual void reshape(int width, int height); 74 virtual void reshape(int width, int height);
75 75
76 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); 76 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size);
77 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, 77 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size,
78 WebGLId framebuffer, int width, int height); 78 WebGLId framebuffer, int width, int height);
79 79
80 virtual WebGLId getPlatformTextureId(); 80 virtual WebGLId getPlatformTextureId();
81 virtual void prepareTexture(); 81 virtual void prepareTexture();
82 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height);
82 83
83 virtual void activeTexture(WGC3Denum texture); 84 virtual void activeTexture(WGC3Denum texture);
84 virtual void attachShader(WebGLId program, WebGLId shader); 85 virtual void attachShader(WebGLId program, WebGLId shader);
85 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, 86 virtual void bindAttribLocation(WebGLId program, WGC3Duint index,
86 const WGC3Dchar* name); 87 const WGC3Dchar* name);
87 virtual void bindBuffer(WGC3Denum target, WebGLId buffer); 88 virtual void bindBuffer(WGC3Denum target, WebGLId buffer);
88 virtual void bindFramebuffer(WGC3Denum target, WebGLId framebuffer); 89 virtual void bindFramebuffer(WGC3Denum target, WebGLId framebuffer);
89 virtual void bindRenderbuffer(WGC3Denum target, WebGLId renderbuffer); 90 virtual void bindRenderbuffer(WGC3Denum target, WebGLId renderbuffer);
90 virtual void bindTexture(WGC3Denum target, WebGLId texture); 91 virtual void bindTexture(WGC3Denum target, WebGLId texture);
91 virtual void blendColor(WGC3Dclampf red, WGC3Dclampf green, 92 virtual void blendColor(WGC3Dclampf red, WGC3Dclampf green,
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 #ifdef FLIP_FRAMEBUFFER_VERTICALLY 514 #ifdef FLIP_FRAMEBUFFER_VERTICALLY
514 scoped_array<uint8> scanline_; 515 scoped_array<uint8> scanline_;
515 void FlipVertically(uint8* framebuffer, 516 void FlipVertically(uint8* framebuffer,
516 unsigned int width, 517 unsigned int width,
517 unsigned int height); 518 unsigned int height);
518 #endif 519 #endif
519 }; 520 };
520 521
521 #endif // defined(ENABLE_GPU) 522 #endif // defined(ENABLE_GPU)
522 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 523 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698