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

Side by Side Diff: gpu/command_buffer/service/test_helper.h

Issue 10797055: gpu in-memory program cache implementation with a memory limit + lru eviction. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: nit fixes Created 8 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_
7 7
8 #include "gpu/command_buffer/common/gl_mock.h" 8 #include "gpu/command_buffer/common/gl_mock.h"
9 9
10 namespace gpu { 10 namespace gpu {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 static void SetupExpectationsForClearingUniforms( 75 static void SetupExpectationsForClearingUniforms(
76 ::gfx::MockGLInterface* gl, UniformInfo* uniforms, size_t num_uniforms); 76 ::gfx::MockGLInterface* gl, UniformInfo* uniforms, size_t num_uniforms);
77 77
78 static void SetupShader( 78 static void SetupShader(
79 ::gfx::MockGLInterface* gl, 79 ::gfx::MockGLInterface* gl,
80 AttribInfo* attribs, size_t num_attribs, 80 AttribInfo* attribs, size_t num_attribs,
81 UniformInfo* uniforms, size_t num_uniforms, 81 UniformInfo* uniforms, size_t num_uniforms,
82 GLuint service_id); 82 GLuint service_id);
83 83
84 static void SetupProgramSuccessExpectations(::gfx::MockGLInterface* gl,
85 AttribInfo* attribs, size_t num_attribs,
86 UniformInfo* uniforms, size_t num_uniforms,
87 GLuint service_id);
88
84 private: 89 private:
85 static void SetupTextureInitializationExpectations( 90 static void SetupTextureInitializationExpectations(
86 ::gfx::MockGLInterface* gl, GLenum target); 91 ::gfx::MockGLInterface* gl, GLenum target);
87 static void SetupTextureDestructionExpectations( 92 static void SetupTextureDestructionExpectations(
88 ::gfx::MockGLInterface* gl, GLenum target); 93 ::gfx::MockGLInterface* gl, GLenum target);
89 }; 94 };
90 95
91 } // namespace gles2 96 } // namespace gles2
92 } // namespace gpu 97 } // namespace gpu
93 98
94 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_ 99 #endif // GPU_COMMAND_BUFFER_SERVICE_TEST_HELPER_H_
95 100
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/shader_translator.h ('k') | gpu/command_buffer/service/test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698