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

Side by Side Diff: ui/gfx/gl/gl_surface.cc

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.h ('k') | webkit/gpu/webgraphicscontext3d_in_process_impl.h » ('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 #include "ui/gfx/gl/gl_surface.h" 5 #include "ui/gfx/gl/gl_surface.h"
6 6
7 #include "base/threading/thread_local.h" 7 #include "base/threading/thread_local.h"
8 #include "ui/gfx/gl/gl_context.h" 8 #include "ui/gfx/gl/gl_context.h"
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 13 matching lines...) Expand all
24 return true; 24 return true;
25 } 25 }
26 26
27 unsigned int GLSurface::GetBackingFrameBufferObject() { 27 unsigned int GLSurface::GetBackingFrameBufferObject() {
28 return 0; 28 return 0;
29 } 29 }
30 30
31 void GLSurface::OnMakeCurrent(GLContext* context) { 31 void GLSurface::OnMakeCurrent(GLContext* context) {
32 } 32 }
33 33
34 void GLSurface::SetVisible(bool visible) {
35 }
36
34 GLSurface* GLSurface::GetCurrent() { 37 GLSurface* GLSurface::GetCurrent() {
35 return current_surface_.Get(); 38 return current_surface_.Get();
36 } 39 }
37 40
38 void GLSurface::SetCurrent(GLSurface* surface) { 41 void GLSurface::SetCurrent(GLSurface* surface) {
39 current_surface_.Set(surface); 42 current_surface_.Set(surface);
40 } 43 }
41 44
42 } // namespace gfx 45 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl_surface.h ('k') | webkit/gpu/webgraphicscontext3d_in_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698