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

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

Issue 467183003: Minor scoped_refptr cleanup in cc::OutputSurface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: With raw pointer Created 6 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 unified diff | Download patch
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/resources/resource_provider.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "base/message_loop/message_loop.h" 5 #include "base/message_loop/message_loop.h"
6 #include "cc/layers/append_quads_data.h" 6 #include "cc/layers/append_quads_data.h"
7 #include "cc/output/gl_renderer.h" 7 #include "cc/output/gl_renderer.h"
8 #include "cc/quads/draw_quad.h" 8 #include "cc/quads/draw_quad.h"
9 #include "cc/quads/picture_draw_quad.h" 9 #include "cc/quads/picture_draw_quad.h"
10 #include "cc/quads/texture_draw_quad.h" 10 #include "cc/quads/texture_draw_quad.h"
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 y_resource, 529 y_resource,
530 u_resource, 530 u_resource,
531 v_resource, 531 v_resource,
532 a_resource, 532 a_resource,
533 color_space); 533 color_space);
534 } 534 }
535 535
536 virtual void SetUp() OVERRIDE { 536 virtual void SetUp() OVERRIDE {
537 GLRendererPixelTest::SetUp(); 537 GLRendererPixelTest::SetUp();
538 video_resource_updater_.reset(new VideoResourceUpdater( 538 video_resource_updater_.reset(new VideoResourceUpdater(
539 output_surface_->context_provider().get(), resource_provider_.get())); 539 output_surface_->context_provider(), resource_provider_.get()));
540 } 540 }
541 541
542 private: 542 private:
543 scoped_ptr<VideoResourceUpdater> video_resource_updater_; 543 scoped_ptr<VideoResourceUpdater> video_resource_updater_;
544 }; 544 };
545 545
546 TEST_F(VideoGLRendererPixelTest, SimpleYUVRect) { 546 TEST_F(VideoGLRendererPixelTest, SimpleYUVRect) {
547 gfx::Rect rect(this->device_viewport_size_); 547 gfx::Rect rect(this->device_viewport_size_);
548 548
549 RenderPassId id(1, 1); 549 RenderPassId id(1, 1);
(...skipping 1659 matching lines...) Expand 10 before | Expand all | Expand 10 after
2209 EXPECT_TRUE(this->RunPixelTest( 2209 EXPECT_TRUE(this->RunPixelTest(
2210 &pass_list, 2210 &pass_list,
2211 base::FilePath(FILE_PATH_LITERAL("wrap_mode_repeat.png")), 2211 base::FilePath(FILE_PATH_LITERAL("wrap_mode_repeat.png")),
2212 FuzzyPixelOffByOneComparator(true))); 2212 FuzzyPixelOffByOneComparator(true)));
2213 } 2213 }
2214 2214
2215 #endif // !defined(OS_ANDROID) 2215 #endif // !defined(OS_ANDROID)
2216 2216
2217 } // namespace 2217 } // namespace
2218 } // namespace cc 2218 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698