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

Side by Side Diff: webkit/gpu/webgraphicscontext3d_in_process_impl.h

Issue 7890046: Command to mark surface inactive, so gpu process can release resources. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: final rebase and added comments 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/gl/gl_surface.cc ('k') | webkit/gpu/webgraphicscontext3d_in_process_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 WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ 5 #ifndef WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_
6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 virtual int width(); 66 virtual int width();
67 virtual int height(); 67 virtual int height();
68 68
69 virtual bool isGLES2Compliant(); 69 virtual bool isGLES2Compliant();
70 70
71 virtual bool setParentContext(WebGraphicsContext3D* parent_context); 71 virtual bool setParentContext(WebGraphicsContext3D* parent_context);
72 72
73 virtual void reshape(int width, int height); 73 virtual void reshape(int width, int height);
74 74
75 virtual void setVisibility(bool visible);
76
75 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize); 77 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize);
76 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, 78 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size,
77 WebGLId framebuffer, int width, int height); 79 WebGLId framebuffer, int width, int height);
78 80
79 virtual WebGLId getPlatformTextureId(); 81 virtual WebGLId getPlatformTextureId();
80 virtual void prepareTexture(); 82 virtual void prepareTexture();
81 83
82 virtual void synthesizeGLError(WGC3Denum error); 84 virtual void synthesizeGLError(WGC3Denum error);
83 virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset, 85 virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset,
84 WGC3Dsizeiptr size, WGC3Denum access); 86 WGC3Dsizeiptr size, WGC3Denum access);
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 492
491 ShHandle fragment_compiler_; 493 ShHandle fragment_compiler_;
492 ShHandle vertex_compiler_; 494 ShHandle vertex_compiler_;
493 gfx::PluginWindowHandle window_; 495 gfx::PluginWindowHandle window_;
494 }; 496 };
495 497
496 } // namespace gpu 498 } // namespace gpu
497 } // namespace webkit 499 } // namespace webkit
498 500
499 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ 501 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl_surface.cc ('k') | webkit/gpu/webgraphicscontext3d_in_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698