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

Side by Side Diff: cc/output/texture_copier_unittest.cc

Issue 12665005: cc: Use highp precision for texture coords if available and needed (Closed) Base URL: http://git.chromium.org/chromium/src.git@highp2
Patch Set: rebase after all dependencies landed Created 7 years, 8 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
« no previous file with comments | « cc/output/texture_copier.cc ('k') | cc/resources/picture_layer_tiling_set_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/output/texture_copier.h" 5 #include "cc/output/texture_copier.h"
6 6
7 #include "cc/test/test_web_graphics_context_3d.h" 7 #include "cc/test/test_web_graphics_context_3d.h"
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "third_party/khronos/GLES2/gl2.h" 10 #include "third_party/khronos/GLES2/gl2.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 EXPECT_CALL(*mock_context, 62 EXPECT_CALL(*mock_context,
63 texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)); 63 texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR));
64 EXPECT_CALL(*mock_context, bindFramebuffer(GL_FRAMEBUFFER, 0)); 64 EXPECT_CALL(*mock_context, bindFramebuffer(GL_FRAMEBUFFER, 0));
65 EXPECT_CALL(*mock_context, enable(GL_SCISSOR_TEST)); 65 EXPECT_CALL(*mock_context, enable(GL_SCISSOR_TEST));
66 } 66 }
67 67
68 int source_texture_id = mock_context->createTexture(); 68 int source_texture_id = mock_context->createTexture();
69 int dest_texture_id = mock_context->createTexture(); 69 int dest_texture_id = mock_context->createTexture();
70 gfx::Size size(256, 128); 70 gfx::Size size(256, 128);
71 scoped_ptr<AcceleratedTextureCopier> copier( 71 scoped_ptr<AcceleratedTextureCopier> copier(
72 AcceleratedTextureCopier::Create(mock_context.get(), false)); 72 AcceleratedTextureCopier::Create(mock_context.get(), false, 0));
73 TextureCopier::Parameters copy = { source_texture_id, dest_texture_id, size }; 73 TextureCopier::Parameters copy = { source_texture_id, dest_texture_id, size };
74 copier->CopyTexture(copy); 74 copier->CopyTexture(copy);
75 } 75 }
76 76
77 } // namespace 77 } // namespace
78 } // namespace cc 78 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/texture_copier.cc ('k') | cc/resources/picture_layer_tiling_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698