// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_GPU_GL_STRING_MANAGER_H_ #define CHROME_BROWSER_GPU_GL_STRING_MANAGER_H_ #include #include "base/compiler_specific.h" #include "content/public/browser/gpu_data_manager_observer.h" class GLStringManager : public content::GpuDataManagerObserver { public: GLStringManager(); virtual ~GLStringManager(); // Get cached GL strings in local state and send them to GpuDataManager. void Initialize(); // content::GpuDataManagerObserver virtual void OnGpuInfoUpdate() OVERRIDE; virtual void OnVideoMemoryUsageStatsUpdate( const content::GPUVideoMemoryUsageStats& video_memory_usage_stats) OVERRIDE {} private: std::string gl_vendor_; std::string gl_renderer_; std::string gl_version_; DISALLOW_COPY_AND_ASSIGN(GLStringManager); }; #endif // CHROME_BROWSER_GPU_GL_STRING_MANAGER_H_