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

Side by Side Diff: cc/resources/raster_worker_pool_perftest.cc

Issue 255713008: Change glimage to accept a type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « android_webview/browser/gpu_memory_buffer_factory_impl.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698