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

Side by Side Diff: gpu/command_buffer/service/memory_program_cache_unittest.cc

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 #include "gpu/command_buffer/service/memory_program_cache.h" 5 #include "gpu/command_buffer/service/memory_program_cache.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "gpu/command_buffer/common/gles2_cmd_format.h" 8 #include "gpu/command_buffer/common/gles2_cmd_format.h"
9 #include "gpu/command_buffer/service/gl_utils.h" 9 #include "gpu/command_buffer/service/gl_utils.h"
10 #include "gpu/command_buffer/service/gpu_service_test.h" 10 #include "gpu/command_buffer/service/gpu_service_test.h"
11 #include "gpu/command_buffer/service/shader_manager.h" 11 #include "gpu/command_buffer/service/shader_manager.h"
12 #include "gpu/command_buffer/service/shader_translator.h" 12 #include "gpu/command_buffer/service/shader_translator.h"
13 #include "gpu/command_buffer/service/test_helper.h" 13 #include "gpu/command_buffer/service/test_helper.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "ui/gl/gl_bindings.h" 15 #include "ui/gl/gl_bindings.h"
16 #include "ui/gl/gl_mock.h" 16 #include "ui/gl/gl_mock.h"
17 17
18 using ::testing::_; 18 using ::testing::_;
19 using ::testing::ElementsAreArray;
20 using ::testing::Invoke; 19 using ::testing::Invoke;
21 using ::testing::SetArgPointee; 20 using ::testing::SetArgPointee;
22 using ::testing::SetArrayArgument;
23 21
24 namespace gpu { 22 namespace gpu {
25 namespace gles2 { 23 namespace gles2 {
26 24
27 class ProgramBinaryEmulator { 25 class ProgramBinaryEmulator {
28 public: 26 public:
29 ProgramBinaryEmulator(GLsizei length, 27 ProgramBinaryEmulator(GLsizei length,
30 GLenum format, 28 GLenum format,
31 const char* binary) 29 const char* binary)
32 : length_(length), 30 : length_(length),
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 NULL, 622 NULL,
625 fragment_shader_, 623 fragment_shader_,
626 NULL, 624 NULL,
627 NULL, 625 NULL,
628 base::Bind(&MemoryProgramCacheTest::ShaderCacheCb, 626 base::Bind(&MemoryProgramCacheTest::ShaderCacheCb,
629 base::Unretained(this)))); 627 base::Unretained(this))));
630 } 628 }
631 629
632 } // namespace gles2 630 } // namespace gles2
633 } // namespace gpu 631 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_tracer_unittest.cc ('k') | gpu/command_buffer/service/program_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698