Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / content / browser / renderer_host / compositing_iosurface_context_mac.mm
index 4c30cad..fecab50 100644 (file)
@@ -180,10 +180,7 @@ CompositingIOSurfaceContext::CompositingIOSurfaceContext(
       cgl_context_(cgl_context),
       is_vsync_disabled_(is_vsync_disabled),
       shader_program_cache_(shader_program_cache.Pass()),
-      poisoned_(false),
-      initialized_is_intel_(false),
-      is_intel_(false),
-      screen_(0) {
+      poisoned_(false) {
   DCHECK(window_map()->find(window_number_) == window_map()->end());
   window_map()->insert(std::make_pair(window_number_, this));
 
@@ -214,20 +211,6 @@ NSOpenGLContext* CompositingIOSurfaceContext::nsgl_context() const {
   return nsgl_context_;
 }
 
-bool CompositingIOSurfaceContext::IsVendorIntel() {
-  GLint screen;
-  CGLGetVirtualScreen(cgl_context(), &screen);
-  if (screen != screen_)
-    initialized_is_intel_ = false;
-  screen_ = screen;
-  if (!initialized_is_intel_) {
-    is_intel_ = strstr(reinterpret_cast<const char*>(glGetString(GL_VENDOR)),
-                      "Intel") != NULL;
-    initialized_is_intel_ = true;
-  }
-  return is_intel_;
-}
-
 void CompositingIOSurfaceContext::OnGpuSwitching() {
   // Recreate all browser-side GL contexts whenever the GPU switches. If this
   // is not done, performance will suffer.