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

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

Issue 8373006: Rename setVisibility to setVisibilityCHROMIUM and expose as GL_CHROIMIUM_set_visibility extension. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: . Created 9 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
« 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 virtual int width(); 68 virtual int width();
69 virtual int height(); 69 virtual int height();
70 70
71 virtual bool isGLES2Compliant(); 71 virtual bool isGLES2Compliant();
72 72
73 virtual bool setParentContext(WebGraphicsContext3D* parent_context); 73 virtual bool setParentContext(WebGraphicsContext3D* parent_context);
74 74
75 virtual void reshape(int width, int height); 75 virtual void reshape(int width, int height);
76 76
77 virtual void setVisibility(bool visible);
78
79 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); 77 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size);
80 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, 78 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size,
81 WebGLId framebuffer, int width, int height); 79 WebGLId framebuffer, int width, int height);
82 80
83 virtual WebGLId getPlatformTextureId(); 81 virtual WebGLId getPlatformTextureId();
84 virtual void prepareTexture(); 82 virtual void prepareTexture();
85 83
86 virtual void activeTexture(WGC3Denum texture); 84 virtual void activeTexture(WGC3Denum texture);
87 virtual void attachShader(WebGLId program, WebGLId shader); 85 virtual void attachShader(WebGLId program, WebGLId shader);
88 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, 86 virtual void bindAttribLocation(WebGLId program, WGC3Duint index,
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 WGC3Dint level, 403 WGC3Dint level,
406 WGC3Dint xoffset, 404 WGC3Dint xoffset,
407 WGC3Dint yoffset, 405 WGC3Dint yoffset,
408 WGC3Dsizei width, 406 WGC3Dsizei width,
409 WGC3Dsizei height, 407 WGC3Dsizei height,
410 WGC3Denum format, 408 WGC3Denum format,
411 WGC3Denum type, 409 WGC3Denum type,
412 WGC3Denum access); 410 WGC3Denum access);
413 virtual void unmapTexSubImage2DCHROMIUM(const void*); 411 virtual void unmapTexSubImage2DCHROMIUM(const void*);
414 412
413 virtual void setVisibilityCHROMIUM(bool visible);
414
415 virtual void copyTextureToParentTextureCHROMIUM( 415 virtual void copyTextureToParentTextureCHROMIUM(
416 WebGLId texture, WebGLId parentTexture); 416 WebGLId texture, WebGLId parentTexture);
417 417
418 virtual void rateLimitOffscreenContextCHROMIUM(); 418 virtual void rateLimitOffscreenContextCHROMIUM();
419 419
420 virtual WebKit::WebString getRequestableExtensionsCHROMIUM(); 420 virtual WebKit::WebString getRequestableExtensionsCHROMIUM();
421 virtual void requestExtensionCHROMIUM(const char*); 421 virtual void requestExtensionCHROMIUM(const char*);
422 422
423 virtual void blitFramebufferCHROMIUM( 423 virtual void blitFramebufferCHROMIUM(
424 WGC3Dint srcX0, WGC3Dint srcY0, WGC3Dint srcX1, WGC3Dint srcY1, 424 WGC3Dint srcX0, WGC3Dint srcY0, WGC3Dint srcX1, WGC3Dint srcY1,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 #ifdef FLIP_FRAMEBUFFER_VERTICALLY 497 #ifdef FLIP_FRAMEBUFFER_VERTICALLY
498 scoped_array<uint8> scanline_; 498 scoped_array<uint8> scanline_;
499 void FlipVertically(uint8* framebuffer, 499 void FlipVertically(uint8* framebuffer,
500 unsigned int width, 500 unsigned int width,
501 unsigned int height); 501 unsigned int height);
502 #endif 502 #endif
503 }; 503 };
504 504
505 #endif // defined(ENABLE_GPU) 505 #endif // defined(ENABLE_GPU)
506 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 506 #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