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

Side by Side Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 21154002: Add support for converting cc::FilterOperations into an SkImageFilter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_host_pixeltest_filters.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/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 5139 matching lines...) Expand 10 before | Expand all | Expand 10 after
5150 contents_changed ? quad_rect : gfx::Rect(); 5150 contents_changed ? quad_rect : gfx::Rect();
5151 scoped_ptr<RenderPassDrawQuad> quad = RenderPassDrawQuad::Create(); 5151 scoped_ptr<RenderPassDrawQuad> quad = RenderPassDrawQuad::Create();
5152 quad->SetNew(test_data->shared_quad_state.get(), 5152 quad->SetNew(test_data->shared_quad_state.get(),
5153 quad_rect, 5153 quad_rect,
5154 new_render_pass_id, 5154 new_render_pass_id,
5155 is_replica, 5155 is_replica,
5156 1, 5156 1,
5157 contents_changed_rect, 5157 contents_changed_rect,
5158 gfx::RectF(0.f, 0.f, 1.f, 1.f), 5158 gfx::RectF(0.f, 0.f, 1.f, 1.f),
5159 FilterOperations(), 5159 FilterOperations(),
5160 skia::RefPtr<SkImageFilter>(),
5161 FilterOperations()); 5160 FilterOperations());
5162 render_pass->AppendQuad(quad.PassAs<DrawQuad>()); 5161 render_pass->AppendQuad(quad.PassAs<DrawQuad>());
5163 } 5162 }
5164 } 5163 }
5165 test_data->render_passes_by_id[render_pass_id] = render_pass.get(); 5164 test_data->render_passes_by_id[render_pass_id] = render_pass.get();
5166 test_data->render_passes.insert(test_data->render_passes.begin(), 5165 test_data->render_passes.insert(test_data->render_passes.begin(),
5167 render_pass.PassAs<RenderPass>()); 5166 render_pass.PassAs<RenderPass>());
5168 if (*current_char) 5167 if (*current_char)
5169 current_char++; 5168 current_char++;
5170 } 5169 }
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
6624 host_impl_.reset(); 6623 host_impl_.reset();
6625 6624
6626 // The CopyOutputResult's callback was cancelled, the CopyOutputResult 6625 // The CopyOutputResult's callback was cancelled, the CopyOutputResult
6627 // released, and the texture deleted. 6626 // released, and the texture deleted.
6628 EXPECT_TRUE(context_provider->HasOneRef()); 6627 EXPECT_TRUE(context_provider->HasOneRef());
6629 EXPECT_EQ(0u, context_provider->TestContext3d()->NumTextures()); 6628 EXPECT_EQ(0u, context_provider->TestContext3d()->NumTextures());
6630 } 6629 }
6631 6630
6632 } // namespace 6631 } // namespace
6633 } // namespace cc 6632 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_host_pixeltest_filters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698