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

Side by Side Diff: gpu/command_buffer/service/feature_info.cc

Issue 10067035: RefCounted types should not have public destructors, media/ and gpu/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 7 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
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 "gpu/command_buffer/service/feature_info.h" 5 #include "gpu/command_buffer/service/feature_info.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "gpu/command_buffer/service/gl_utils.h" 11 #include "gpu/command_buffer/service/gl_utils.h"
12 #include "ui/gl/gl_context.h" 12 #include "ui/gl/gl_context.h"
13 #include "ui/gl/gl_implementation.h" 13 #include "ui/gl/gl_implementation.h"
14 #if defined(OS_MACOSX) 14 #if defined(OS_MACOSX)
15 #include "ui/surface/io_surface_support_mac.h" 15 #include "ui/surface/io_surface_support_mac.h"
16 #endif 16 #endif
17 17
18 namespace gpu { 18 namespace gpu {
19 namespace gles2 { 19 namespace gles2 {
20 20
21 FeatureInfo::FeatureInfo() { 21 FeatureInfo::FeatureInfo() {
22 } 22 }
23 23
24 FeatureInfo::~FeatureInfo() {
25 }
26
27 // Helps query for extensions. 24 // Helps query for extensions.
28 class ExtensionHelper { 25 class ExtensionHelper {
29 public: 26 public:
30 ExtensionHelper(const char* extensions, const char* desired_features) 27 ExtensionHelper(const char* extensions, const char* desired_features)
31 : desire_all_features_(false) { 28 : desire_all_features_(false) {
32 // Check for "*" 29 // Check for "*"
33 if (desired_features && 30 if (desired_features &&
34 desired_features[0] == '*' && 31 desired_features[0] == '*' &&
35 desired_features[1] == '\0') { 32 desired_features[1] == '\0') {
36 desired_features = NULL; 33 desired_features = NULL;
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 if (!disallowed_features_.swap_buffer_complete_callback) 500 if (!disallowed_features_.swap_buffer_complete_callback)
504 AddExtensionString("GL_CHROMIUM_swapbuffers_complete_callback"); 501 AddExtensionString("GL_CHROMIUM_swapbuffers_complete_callback");
505 } 502 }
506 503
507 void FeatureInfo::AddExtensionString(const std::string& str) { 504 void FeatureInfo::AddExtensionString(const std::string& str) {
508 if (extensions_.find(str) == std::string::npos) { 505 if (extensions_.find(str) == std::string::npos) {
509 extensions_ += (extensions_.empty() ? "" : " ") + str; 506 extensions_ += (extensions_.empty() ? "" : " ") + str;
510 } 507 }
511 } 508 }
512 509
510 FeatureInfo::~FeatureInfo() {
511 }
512
513 } // namespace gles2 513 } // namespace gles2
514 } // namespace gpu 514 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/framebuffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698