| 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/tile_task_worker_pool.h" | 5 #include "cc/resources/tile_task_worker_pool.h" |
| 6 | 6 |
| 7 #include "base/test/test_simple_task_runner.h" | 7 #include "base/test/test_simple_task_runner.h" |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "cc/debug/lap_timer.h" | 9 #include "cc/debug/lap_timer.h" |
| 10 #include "cc/output/context_provider.h" | 10 #include "cc/output/context_provider.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "testing/perf/perf_test.h" | 29 #include "testing/perf/perf_test.h" |
| 30 #include "third_party/khronos/GLES2/gl2.h" | 30 #include "third_party/khronos/GLES2/gl2.h" |
| 31 #include "third_party/skia/include/gpu/GrContext.h" | 31 #include "third_party/skia/include/gpu/GrContext.h" |
| 32 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" | 32 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" |
| 33 | 33 |
| 34 namespace cc { | 34 namespace cc { |
| 35 namespace { | 35 namespace { |
| 36 | 36 |
| 37 class PerfGLES2Interface : public gpu::gles2::GLES2InterfaceStub { | 37 class PerfGLES2Interface : public gpu::gles2::GLES2InterfaceStub { |
| 38 // Overridden from gpu::gles2::GLES2Interface: | 38 // Overridden from gpu::gles2::GLES2Interface: |
| 39 GLuint CreateImageCHROMIUM(ClientBuffer buffer, | 39 GLuint CreateImageCHROMIUM(ClientBuffer* buffers, |
| 40 GLsizei width, | 40 GLsizei width, |
| 41 GLsizei height, | 41 GLsizei height, |
| 42 GLenum internalformat) override { | 42 GLenum internalformat) override { |
| 43 return 1u; | 43 return 1u; |
| 44 } | 44 } |
| 45 void GenBuffers(GLsizei n, GLuint* buffers) override { | 45 void GenBuffers(GLsizei n, GLuint* buffers) override { |
| 46 for (GLsizei i = 0; i < n; ++i) | 46 for (GLsizei i = 0; i < n; ++i) |
| 47 buffers[i] = 1u; | 47 buffers[i] = 1u; |
| 48 } | 48 } |
| 49 void GenTextures(GLsizei n, GLuint* textures) override { | 49 void GenTextures(GLsizei n, GLuint* textures) override { |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 RunBuildTileTaskQueueTest("1_0", 1, 0); | 511 RunBuildTileTaskQueueTest("1_0", 1, 0); |
| 512 RunBuildTileTaskQueueTest("32_0", 32, 0); | 512 RunBuildTileTaskQueueTest("32_0", 32, 0); |
| 513 RunBuildTileTaskQueueTest("1_1", 1, 1); | 513 RunBuildTileTaskQueueTest("1_1", 1, 1); |
| 514 RunBuildTileTaskQueueTest("32_1", 32, 1); | 514 RunBuildTileTaskQueueTest("32_1", 32, 1); |
| 515 RunBuildTileTaskQueueTest("1_4", 1, 4); | 515 RunBuildTileTaskQueueTest("1_4", 1, 4); |
| 516 RunBuildTileTaskQueueTest("32_4", 32, 4); | 516 RunBuildTileTaskQueueTest("32_4", 32, 4); |
| 517 } | 517 } |
| 518 | 518 |
| 519 } // namespace | 519 } // namespace |
| 520 } // namespace cc | 520 } // namespace cc |
| OLD | NEW |