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

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

Issue 712343003: Infrastructure for temportarily relinquishing GPU resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changes suggested by dcheng Created 6 years, 1 month 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
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_egl.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) 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 #include "ui/gl/gl_surface.h" 5 #include "ui/gl/gl_surface.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 void GLSurface::InitializeDynamicMockBindingsForTests(GLContext* context) { 158 void GLSurface::InitializeDynamicMockBindingsForTests(GLContext* context) {
159 CHECK(InitializeDynamicGLBindings(kGLImplementationMockGL, context)); 159 CHECK(InitializeDynamicGLBindings(kGLImplementationMockGL, context));
160 } 160 }
161 161
162 GLSurface::GLSurface() {} 162 GLSurface::GLSurface() {}
163 163
164 bool GLSurface::Initialize() { 164 bool GLSurface::Initialize() {
165 return true; 165 return true;
166 } 166 }
167 167
168 void GLSurface::DestroyAndTerminateDisplay() {
169 Destroy();
170 }
171
168 bool GLSurface::Resize(const gfx::Size& size) { 172 bool GLSurface::Resize(const gfx::Size& size) {
169 NOTIMPLEMENTED(); 173 NOTIMPLEMENTED();
170 return false; 174 return false;
171 } 175 }
172 176
173 bool GLSurface::Recreate() { 177 bool GLSurface::Recreate() {
174 NOTIMPLEMENTED(); 178 NOTIMPLEMENTED();
175 return false; 179 return false;
176 } 180 }
177 181
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 z_order, transform, image, bounds_rect, crop_rect); 363 z_order, transform, image, bounds_rect, crop_rect);
360 } 364 }
361 365
362 bool GLSurfaceAdapter::IsSurfaceless() const { 366 bool GLSurfaceAdapter::IsSurfaceless() const {
363 return surface_->IsSurfaceless(); 367 return surface_->IsSurfaceless();
364 } 368 }
365 369
366 GLSurfaceAdapter::~GLSurfaceAdapter() {} 370 GLSurfaceAdapter::~GLSurfaceAdapter() {}
367 371
368 } // namespace gfx 372 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698