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

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: Flush only on hide 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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 virtual int width(); 63 virtual int width();
64 virtual int height(); 64 virtual int height();
65 65
66 virtual bool isGLES2Compliant(); 66 virtual bool isGLES2Compliant();
67 67
68 virtual bool setParentContext(WebGraphicsContext3D* parent_context); 68 virtual bool setParentContext(WebGraphicsContext3D* parent_context);
69 69
70 virtual void reshape(int width, int height); 70 virtual void reshape(int width, int height);
71 71
72 virtual void setVisibility(bool visible);
73
72 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize); 74 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize);
73 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, 75 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size,
74 WebGLId framebuffer, int width, int height); 76 WebGLId framebuffer, int width, int height);
75 77
76 virtual WebGLId getPlatformTextureId(); 78 virtual WebGLId getPlatformTextureId();
77 virtual void prepareTexture(); 79 virtual void prepareTexture();
78 80
79 virtual void synthesizeGLError(WGC3Denum error); 81 virtual void synthesizeGLError(WGC3Denum error);
80 virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset, 82 virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset,
81 WGC3Dsizeiptr size, WGC3Denum access); 83 WGC3Dsizeiptr size, WGC3Denum access);
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 ShaderSourceMap shader_source_map_; 485 ShaderSourceMap shader_source_map_;
484 486
485 ShHandle fragment_compiler_; 487 ShHandle fragment_compiler_;
486 ShHandle vertex_compiler_; 488 ShHandle vertex_compiler_;
487 }; 489 };
488 490
489 } // namespace gpu 491 } // namespace gpu
490 } // namespace webkit 492 } // namespace webkit
491 493
492 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ 494 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698