| 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_raster_worker_pool.h" | 10 #include "cc/resources/image_raster_worker_pool.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "testing/perf/perf_test.h" | 22 #include "testing/perf/perf_test.h" |
| 23 #include "third_party/khronos/GLES2/gl2.h" | 23 #include "third_party/khronos/GLES2/gl2.h" |
| 24 | 24 |
| 25 namespace cc { | 25 namespace cc { |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 class PerfGLES2Interface : public gpu::gles2::GLES2InterfaceStub { | 28 class PerfGLES2Interface : public gpu::gles2::GLES2InterfaceStub { |
| 29 // Overridden from gpu::gles2::GLES2Interface: | 29 // Overridden from gpu::gles2::GLES2Interface: |
| 30 virtual GLuint CreateImageCHROMIUM(GLsizei width, | 30 virtual GLuint CreateImageCHROMIUM(GLsizei width, |
| 31 GLsizei height, | 31 GLsizei height, |
| 32 GLenum internalformat) OVERRIDE { | 32 GLenum internalformat, |
| 33 GLenum usage) OVERRIDE { |
| 33 return 1u; | 34 return 1u; |
| 34 } | 35 } |
| 35 virtual void GenBuffers(GLsizei n, GLuint* buffers) OVERRIDE { | 36 virtual void GenBuffers(GLsizei n, GLuint* buffers) OVERRIDE { |
| 36 for (GLsizei i = 0; i < n; ++i) | 37 for (GLsizei i = 0; i < n; ++i) |
| 37 buffers[i] = 1u; | 38 buffers[i] = 1u; |
| 38 } | 39 } |
| 39 virtual void GenTextures(GLsizei n, GLuint* textures) OVERRIDE { | 40 virtual void GenTextures(GLsizei n, GLuint* textures) OVERRIDE { |
| 40 for (GLsizei i = 0; i < n; ++i) | 41 for (GLsizei i = 0; i < n; ++i) |
| 41 textures[i] = 1u; | 42 textures[i] = 1u; |
| 42 } | 43 } |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 RunBuildRasterTaskQueueTest("1_0", 1, 0); | 440 RunBuildRasterTaskQueueTest("1_0", 1, 0); |
| 440 RunBuildRasterTaskQueueTest("32_0", 32, 0); | 441 RunBuildRasterTaskQueueTest("32_0", 32, 0); |
| 441 RunBuildRasterTaskQueueTest("1_1", 1, 1); | 442 RunBuildRasterTaskQueueTest("1_1", 1, 1); |
| 442 RunBuildRasterTaskQueueTest("32_1", 32, 1); | 443 RunBuildRasterTaskQueueTest("32_1", 32, 1); |
| 443 RunBuildRasterTaskQueueTest("1_4", 1, 4); | 444 RunBuildRasterTaskQueueTest("1_4", 1, 4); |
| 444 RunBuildRasterTaskQueueTest("32_4", 32, 4); | 445 RunBuildRasterTaskQueueTest("32_4", 32, 4); |
| 445 } | 446 } |
| 446 | 447 |
| 447 } // namespace | 448 } // namespace |
| 448 } // namespace cc | 449 } // namespace cc |
| OLD | NEW |