| 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 <stdio.h> | 5 #include <stdio.h> |
| 6 #include <cmath> | 6 #include <cmath> |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include <GLES2/gl2.h> | 10 #include <GLES2/gl2.h> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #if defined(OS_MACOSX) | 37 #if defined(OS_MACOSX) |
| 38 #include "base/mac/scoped_nsautorelease_pool.h" | 38 #include "base/mac/scoped_nsautorelease_pool.h" |
| 39 #endif | 39 #endif |
| 40 | 40 |
| 41 #if defined(TOOLKIT_GTK) | 41 #if defined(TOOLKIT_GTK) |
| 42 #include "ui/gfx/gtk_util.h" | 42 #include "ui/gfx/gtk_util.h" |
| 43 #endif | 43 #endif |
| 44 | 44 |
| 45 namespace content { | 45 namespace content { |
| 46 | 46 |
| 47 using WebKit::WebGLId; | 47 using blink::WebGLId; |
| 48 using WebKit::WebGraphicsContext3D; | 48 using blink::WebGraphicsContext3D; |
| 49 using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl; | 49 using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl; |
| 50 | 50 |
| 51 content::GLHelper::ScalerQuality kQualities[] = { | 51 content::GLHelper::ScalerQuality kQualities[] = { |
| 52 content::GLHelper::SCALER_QUALITY_BEST, | 52 content::GLHelper::SCALER_QUALITY_BEST, |
| 53 content::GLHelper::SCALER_QUALITY_GOOD, | 53 content::GLHelper::SCALER_QUALITY_GOOD, |
| 54 content::GLHelper::SCALER_QUALITY_FAST, | 54 content::GLHelper::SCALER_QUALITY_FAST, |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 const char *kQualityNames[] = { | 57 const char *kQualityNames[] = { |
| 58 "best", | 58 "best", |
| (...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1384 #if defined(TOOLKIT_GTK) | 1384 #if defined(TOOLKIT_GTK) |
| 1385 gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess()); | 1385 gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess()); |
| 1386 #endif | 1386 #endif |
| 1387 gfx::GLSurface::InitializeOneOff(); | 1387 gfx::GLSurface::InitializeOneOff(); |
| 1388 gpu::ApplyGpuDriverBugWorkarounds(CommandLine::ForCurrentProcess()); | 1388 gpu::ApplyGpuDriverBugWorkarounds(CommandLine::ForCurrentProcess()); |
| 1389 | 1389 |
| 1390 content::UnitTestTestSuite runner(suite); | 1390 content::UnitTestTestSuite runner(suite); |
| 1391 base::MessageLoop message_loop; | 1391 base::MessageLoop message_loop; |
| 1392 return runner.Run(); | 1392 return runner.Run(); |
| 1393 } | 1393 } |
| OLD | NEW |