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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 bool GLSurface::Resize(const gfx::Size& size) { | 82 bool GLSurface::Resize(const gfx::Size& size) { |
83 NOTIMPLEMENTED(); | 83 NOTIMPLEMENTED(); |
84 return false; | 84 return false; |
85 } | 85 } |
86 | 86 |
87 bool GLSurface::DeferDraws() { | 87 bool GLSurface::DeferDraws() { |
88 return false; | 88 return false; |
89 } | 89 } |
90 | 90 |
91 std::string GLSurface::GetExtensions() { | 91 std::string GLSurface::GetExtensions() { |
92 return std::string(""); | 92 return std::string(); |
93 } | 93 } |
94 | 94 |
95 bool GLSurface::HasExtension(const char* name) { | 95 bool GLSurface::HasExtension(const char* name) { |
96 std::string extensions = GetExtensions(); | 96 std::string extensions = GetExtensions(); |
97 extensions += " "; | 97 extensions += " "; |
98 | 98 |
99 std::string delimited_name(name); | 99 std::string delimited_name(name); |
100 delimited_name += " "; | 100 delimited_name += " "; |
101 | 101 |
102 return extensions.find(delimited_name) != std::string::npos; | 102 return extensions.find(delimited_name) != std::string::npos; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 return surface_->GetFormat(); | 245 return surface_->GetFormat(); |
246 } | 246 } |
247 | 247 |
248 VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() { | 248 VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() { |
249 return surface_->GetVSyncProvider(); | 249 return surface_->GetVSyncProvider(); |
250 } | 250 } |
251 | 251 |
252 GLSurfaceAdapter::~GLSurfaceAdapter() {} | 252 GLSurfaceAdapter::~GLSurfaceAdapter() {} |
253 | 253 |
254 } // namespace gfx | 254 } // namespace gfx |
OLD | NEW |