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

Side by Side Diff: content/renderer/gpu/webgraphicscontext3d_command_buffer_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: first cut of IPC version 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 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 virtual int width(); 67 virtual int width();
68 virtual int height(); 68 virtual int height();
69 69
70 virtual bool isGLES2Compliant(); 70 virtual bool isGLES2Compliant();
71 71
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 void setVisibility(bool visible);
77
76 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); 78 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size);
77 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, 79 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size,
78 WebGLId framebuffer, int width, int height); 80 WebGLId framebuffer, int width, int height);
79 81
80 virtual WebGLId getPlatformTextureId(); 82 virtual WebGLId getPlatformTextureId();
81 virtual void prepareTexture(); 83 virtual void prepareTexture();
82 84
83 virtual void activeTexture(WGC3Denum texture); 85 virtual void activeTexture(WGC3Denum texture);
84 virtual void attachShader(WebGLId program, WebGLId shader); 86 virtual void attachShader(WebGLId program, WebGLId shader);
85 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, 87 virtual void bindAttribLocation(WebGLId program, WGC3Duint index,
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 #ifdef FLIP_FRAMEBUFFER_VERTICALLY 493 #ifdef FLIP_FRAMEBUFFER_VERTICALLY
492 scoped_array<uint8> scanline_; 494 scoped_array<uint8> scanline_;
493 void FlipVertically(uint8* framebuffer, 495 void FlipVertically(uint8* framebuffer,
494 unsigned int width, 496 unsigned int width,
495 unsigned int height); 497 unsigned int height);
496 #endif 498 #endif
497 }; 499 };
498 500
499 #endif // defined(ENABLE_GPU) 501 #endif // defined(ENABLE_GPU)
500 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 502 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698