Chromium Code Reviews| 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_context_egl.h" | 5 #include "ui/gl/gl_context_egl.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 175 } | 175 } |
| 176 | 176 |
| 177 bool GLContextEGL::WasAllocatedUsingRobustnessExtension() { | 177 bool GLContextEGL::WasAllocatedUsingRobustnessExtension() { |
| 178 return GLSurfaceEGL::IsCreateContextRobustnessSupported(); | 178 return GLSurfaceEGL::IsCreateContextRobustnessSupported(); |
| 179 } | 179 } |
| 180 | 180 |
| 181 GLContextEGL::~GLContextEGL() { | 181 GLContextEGL::~GLContextEGL() { |
| 182 Destroy(); | 182 Destroy(); |
| 183 } | 183 } |
| 184 | 184 |
| 185 #ifndef OS_ANDROID | |
| 186 bool GLContextEGL::GetTotalGpuMemory(size_t* bytes) { | |
|
ccameron
2013/02/12 01:56:23
Nit: Should this be #if !defined(OS_ANDROID)?
| |
| 187 DCHECK(bytes); | |
| 188 *bytes = 0; | |
| 189 return false; | |
| 190 } | |
| 191 #endif | |
| 192 | |
| 185 } // namespace gfx | 193 } // namespace gfx |
| OLD | NEW |