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

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: 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_raster_worker_pool.h" 10 #include "cc/resources/image_raster_worker_pool.h"
(...skipping 11 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « no previous file | cc/resources/resource_provider.cc » ('j') | content/browser/gpu/browser_gpu_channel_host_factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698