OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "cc/resources/raster_worker_pool.h" | 5 #include "cc/resources/raster_worker_pool.h" |
6 | 6 |
7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
8 #include "cc/output/context_provider.h" | 8 #include "cc/output/context_provider.h" |
9 #include "cc/resources/direct_raster_worker_pool.h" | 9 #include "cc/resources/direct_raster_worker_pool.h" |
10 #include "cc/resources/image_copy_raster_worker_pool.h" | 10 #include "cc/resources/image_copy_raster_worker_pool.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "testing/perf/perf_test.h" | 24 #include "testing/perf/perf_test.h" |
25 #include "third_party/khronos/GLES2/gl2.h" | 25 #include "third_party/khronos/GLES2/gl2.h" |
26 | 26 |
27 namespace cc { | 27 namespace cc { |
28 namespace { | 28 namespace { |
29 | 29 |
30 class PerfGLES2Interface : public gpu::gles2::GLES2InterfaceStub { | 30 class PerfGLES2Interface : public gpu::gles2::GLES2InterfaceStub { |
31 // Overridden from gpu::gles2::GLES2Interface: | 31 // Overridden from gpu::gles2::GLES2Interface: |
32 virtual GLuint CreateImageCHROMIUM(GLsizei width, | 32 virtual GLuint CreateImageCHROMIUM(GLsizei width, |
33 GLsizei height, | 33 GLsizei height, |
34 GLenum internalformat) OVERRIDE { | 34 GLenum internalformat, |
| 35 GLenum usage) OVERRIDE { |
35 return 1u; | 36 return 1u; |
36 } | 37 } |
37 virtual void GenBuffers(GLsizei n, GLuint* buffers) OVERRIDE { | 38 virtual void GenBuffers(GLsizei n, GLuint* buffers) OVERRIDE { |
38 for (GLsizei i = 0; i < n; ++i) | 39 for (GLsizei i = 0; i < n; ++i) |
39 buffers[i] = 1u; | 40 buffers[i] = 1u; |
40 } | 41 } |
41 virtual void GenTextures(GLsizei n, GLuint* textures) OVERRIDE { | 42 virtual void GenTextures(GLsizei n, GLuint* textures) OVERRIDE { |
42 for (GLsizei i = 0; i < n; ++i) | 43 for (GLsizei i = 0; i < n; ++i) |
43 textures[i] = 1u; | 44 textures[i] = 1u; |
44 } | 45 } |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 RunBuildRasterTaskQueueTest("1_0", 1, 0); | 457 RunBuildRasterTaskQueueTest("1_0", 1, 0); |
457 RunBuildRasterTaskQueueTest("32_0", 32, 0); | 458 RunBuildRasterTaskQueueTest("32_0", 32, 0); |
458 RunBuildRasterTaskQueueTest("1_1", 1, 1); | 459 RunBuildRasterTaskQueueTest("1_1", 1, 1); |
459 RunBuildRasterTaskQueueTest("32_1", 32, 1); | 460 RunBuildRasterTaskQueueTest("32_1", 32, 1); |
460 RunBuildRasterTaskQueueTest("1_4", 1, 4); | 461 RunBuildRasterTaskQueueTest("1_4", 1, 4); |
461 RunBuildRasterTaskQueueTest("32_4", 32, 4); | 462 RunBuildRasterTaskQueueTest("32_4", 32, 4); |
462 } | 463 } |
463 | 464 |
464 } // namespace | 465 } // namespace |
465 } // namespace cc | 466 } // namespace cc |
OLD | NEW |