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

Side by Side Diff: content/common/gpu/client/gl_helper_unittest.cc

Issue 841773006: Extract WebGraphicsContext3DInProcessCommandBufferImpl from webkit/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 11 matching lines...) Expand all
22 #include "base/strings/stringprintf.h" 22 #include "base/strings/stringprintf.h"
23 #include "base/synchronization/waitable_event.h" 23 #include "base/synchronization/waitable_event.h"
24 #include "base/test/launcher/unit_test_launcher.h" 24 #include "base/test/launcher/unit_test_launcher.h"
25 #include "base/test/test_suite.h" 25 #include "base/test/test_suite.h"
26 #include "base/time/time.h" 26 #include "base/time/time.h"
27 #include "content/common/gpu/client/gl_helper.h" 27 #include "content/common/gpu/client/gl_helper.h"
28 #include "content/common/gpu/client/gl_helper_readback_support.h" 28 #include "content/common/gpu/client/gl_helper_readback_support.h"
29 #include "content/common/gpu/client/gl_helper_scaling.h" 29 #include "content/common/gpu/client/gl_helper_scaling.h"
30 #include "content/public/test/unittest_test_suite.h" 30 #include "content/public/test/unittest_test_suite.h"
31 #include "content/test/content_test_suite.h" 31 #include "content/test/content_test_suite.h"
32 #include "gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h"
32 #include "media/base/video_frame.h" 33 #include "media/base/video_frame.h"
33 #include "testing/gtest/include/gtest/gtest.h" 34 #include "testing/gtest/include/gtest/gtest.h"
34 #include "third_party/skia/include/core/SkBitmap.h" 35 #include "third_party/skia/include/core/SkBitmap.h"
35 #include "third_party/skia/include/core/SkTypes.h" 36 #include "third_party/skia/include/core/SkTypes.h"
36 #include "ui/gl/gl_implementation.h" 37 #include "ui/gl/gl_implementation.h"
37 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl. h"
38 38
39 #if defined(OS_MACOSX) 39 #if defined(OS_MACOSX)
40 #include "base/mac/scoped_nsautorelease_pool.h" 40 #include "base/mac/scoped_nsautorelease_pool.h"
41 #endif 41 #endif
42 42
43 namespace content { 43 namespace content {
44 44
45 using blink::WebGLId; 45 using blink::WebGLId;
46 using blink::WebGraphicsContext3D; 46 using blink::WebGraphicsContext3D;
47 using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl; 47 using gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl;
48 48
49 content::GLHelper::ScalerQuality kQualities[] = { 49 content::GLHelper::ScalerQuality kQualities[] = {
50 content::GLHelper::SCALER_QUALITY_BEST, 50 content::GLHelper::SCALER_QUALITY_BEST,
51 content::GLHelper::SCALER_QUALITY_GOOD, 51 content::GLHelper::SCALER_QUALITY_GOOD,
52 content::GLHelper::SCALER_QUALITY_FAST, }; 52 content::GLHelper::SCALER_QUALITY_FAST, };
53 53
54 const char* kQualityNames[] = {"best", "good", "fast", }; 54 const char* kQualityNames[] = {"best", "good", "fast", };
55 55
56 class GLHelperTest : public testing::Test { 56 class GLHelperTest : public testing::Test {
57 protected: 57 protected:
(...skipping 1913 matching lines...) Expand 10 before | Expand all | Expand 10 after
1971 base::TestSuite* suite = new content::ContentTestSuite(argc, argv); 1971 base::TestSuite* suite = new content::ContentTestSuite(argc, argv);
1972 #if defined(OS_MACOSX) 1972 #if defined(OS_MACOSX)
1973 base::mac::ScopedNSAutoreleasePool pool; 1973 base::mac::ScopedNSAutoreleasePool pool;
1974 #endif 1974 #endif
1975 1975
1976 return base::LaunchUnitTestsSerially( 1976 return base::LaunchUnitTestsSerially(
1977 argc, 1977 argc,
1978 argv, 1978 argv,
1979 base::Bind(&RunHelper, base::Unretained(suite))); 1979 base::Bind(&RunHelper, base::Unretained(suite)));
1980 } 1980 }
OLDNEW
« no previous file with comments | « content/common/gpu/client/gl_helper_benchmark.cc ('k') | content/common/gpu/client/gpu_in_process_context_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698