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

Unified Diff: cc/output/renderer_pixeltest.cc

Issue 22529002: [cc] Allow resources and ui resources to specify wrap mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix botched resolve Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/software_renderer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/renderer_pixeltest.cc
diff --git a/cc/output/renderer_pixeltest.cc b/cc/output/renderer_pixeltest.cc
index cd74e50e26120a552f7782d8c3a01aeb1ed35341..daa503912bebda3f4bda3d1ffc7b383ed33c4c83 100644
--- a/cc/output/renderer_pixeltest.cc
+++ b/cc/output/renderer_pixeltest.cc
@@ -112,7 +112,8 @@ scoped_ptr<TextureDrawQuad> CreateTestTextureDrawQuad(
std::vector<uint32_t> pixels(rect.size().GetArea(), pixel_color);
ResourceProvider::ResourceId resource = resource_provider->CreateResource(
- rect.size(), GL_RGBA, ResourceProvider::TextureUsageAny);
+ rect.size(), GL_RGBA, GL_CLAMP_TO_EDGE,
+ ResourceProvider::TextureUsageAny);
resource_provider->SetPixels(
resource,
reinterpret_cast<uint8_t*>(&pixels.front()),
@@ -409,22 +410,26 @@ class VideoGLRendererPixelTest : public GLRendererPixelTest {
resource_provider_->CreateResource(
this->device_viewport_size_,
GL_LUMINANCE,
+ GL_CLAMP_TO_EDGE,
ResourceProvider::TextureUsageAny);
ResourceProvider::ResourceId u_resource =
resource_provider_->CreateResource(
this->device_viewport_size_,
GL_LUMINANCE,
+ GL_CLAMP_TO_EDGE,
ResourceProvider::TextureUsageAny);
ResourceProvider::ResourceId v_resource =
resource_provider_->CreateResource(
this->device_viewport_size_,
GL_LUMINANCE,
+ GL_CLAMP_TO_EDGE,
ResourceProvider::TextureUsageAny);
ResourceProvider::ResourceId a_resource = 0;
if (with_alpha) {
a_resource = resource_provider_->CreateResource(
this->device_viewport_size_,
GL_LUMINANCE,
+ GL_CLAMP_TO_EDGE,
ResourceProvider::TextureUsageAny);
}
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/software_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698