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

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

Issue 9699125: Chromium implementation of discardBackbuffer WebGraphicsContext3D extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renaming extension for now, so its not mistaken for the standard one Created 8 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 | 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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 WGC3Dint yoffset, 436 WGC3Dint yoffset,
437 WGC3Dsizei width, 437 WGC3Dsizei width,
438 WGC3Dsizei height, 438 WGC3Dsizei height,
439 WGC3Denum format, 439 WGC3Denum format,
440 WGC3Denum type, 440 WGC3Denum type,
441 WGC3Denum access); 441 WGC3Denum access);
442 virtual void unmapTexSubImage2DCHROMIUM(const void*); 442 virtual void unmapTexSubImage2DCHROMIUM(const void*);
443 443
444 virtual void setVisibilityCHROMIUM(bool visible); 444 virtual void setVisibilityCHROMIUM(bool visible);
445 445
446 virtual void discardFramebufferEXT(WGC3Denum target,
447 WGC3Dsizei numAttachments,
448 const WGC3Denum* attachments);
449 virtual void ensureFramebufferCHROMIUM();
450
446 virtual void setMemoryAllocationChangedCallbackCHROMIUM( 451 virtual void setMemoryAllocationChangedCallbackCHROMIUM(
447 WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback); 452 WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback);
448 453
449 virtual void copyTextureToParentTextureCHROMIUM( 454 virtual void copyTextureToParentTextureCHROMIUM(
450 WebGLId texture, WebGLId parentTexture); 455 WebGLId texture, WebGLId parentTexture);
451 456
452 virtual void rateLimitOffscreenContextCHROMIUM(); 457 virtual void rateLimitOffscreenContextCHROMIUM();
453 458
454 virtual WebKit::WebString getRequestableExtensionsCHROMIUM(); 459 virtual WebKit::WebString getRequestableExtensionsCHROMIUM();
455 virtual void requestExtensionCHROMIUM(const char*); 460 virtual void requestExtensionCHROMIUM(const char*);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 576
572 #ifdef FLIP_FRAMEBUFFER_VERTICALLY 577 #ifdef FLIP_FRAMEBUFFER_VERTICALLY
573 std::vector<uint8> scanline_; 578 std::vector<uint8> scanline_;
574 void FlipVertically(uint8* framebuffer, 579 void FlipVertically(uint8* framebuffer,
575 unsigned int width, 580 unsigned int width,
576 unsigned int height); 581 unsigned int height);
577 #endif 582 #endif
578 }; 583 };
579 584
580 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 585 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/content_gl_context.cc ('k') | content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698