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

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

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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/base/l10n/l10n_util_unittest.cc ('k') | webkit/appcache/appcache_update_job_unittest.cc » ('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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « ui/base/l10n/l10n_util_unittest.cc ('k') | webkit/appcache/appcache_update_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698