OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |