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

Side by Side Diff: cc/test/layer_tree_pixel_test.cc

Issue 935143002: cc: Remove UpdateDrawProperties during sync composite (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lcd_text_compositor_side_only
Patch Set: Created 5 years, 10 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/test/layer_tree_pixel_test.h ('k') | cc/trees/single_thread_proxy.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/test/layer_tree_pixel_test.h" 5 #include "cc/test/layer_tree_pixel_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "cc/base/switches.h" 9 #include "cc/base/switches.h"
10 #include "cc/layers/solid_color_layer.h" 10 #include "cc/layers/solid_color_layer.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 new TestInProcessContextProvider, new TestInProcessContextProvider, 56 new TestInProcessContextProvider, new TestInProcessContextProvider,
57 flipped_output_surface)); 57 flipped_output_surface));
58 break; 58 break;
59 } 59 }
60 } 60 }
61 61
62 output_surface->set_surface_expansion_size(surface_expansion_size); 62 output_surface->set_surface_expansion_size(surface_expansion_size);
63 return output_surface.Pass(); 63 return output_surface.Pass();
64 } 64 }
65 65
66 void LayerTreePixelTest::CommitCompleteOnThread(LayerTreeHostImpl* impl) { 66 void LayerTreePixelTest::WillActivateTreeOnThread(LayerTreeHostImpl* impl) {
67 LayerTreeImpl* commit_tree = 67 LayerTreeImpl* commit_tree =
68 impl->pending_tree() ? impl->pending_tree() : impl->active_tree(); 68 impl->pending_tree() ? impl->pending_tree() : impl->active_tree();
danakj 2015/02/18 23:49:55 can this use sync_tree()?
enne (OOO) 2015/02/18 23:59:26 Done.
69 if (commit_tree->source_frame_number() != 0) 69 if (commit_tree->source_frame_number() != 0)
70 return; 70 return;
71 71
72 DirectRenderer* renderer = static_cast<DirectRenderer*>(impl->renderer()); 72 DirectRenderer* renderer = static_cast<DirectRenderer*>(impl->renderer());
73 renderer->SetEnlargePassTextureAmountForTesting(enlarge_texture_amount_); 73 renderer->SetEnlargePassTextureAmountForTesting(enlarge_texture_amount_);
74 74
75 gfx::Rect viewport = impl->DeviceViewport(); 75 gfx::Rect viewport = impl->DeviceViewport();
76 // The viewport has a 0,0 origin without external influence. 76 // The viewport has a 0,0 origin without external influence.
77 EXPECT_EQ(gfx::Point().ToString(), viewport.origin().ToString()); 77 EXPECT_EQ(gfx::Point().ToString(), viewport.origin().ToString());
78 // Be that influence! 78 // Be that influence!
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 376
377 *texture_mailbox = TextureMailbox(mailbox, GL_TEXTURE_2D, sync_point); 377 *texture_mailbox = TextureMailbox(mailbox, GL_TEXTURE_2D, sync_point);
378 *release_callback = SingleReleaseCallback::Create( 378 *release_callback = SingleReleaseCallback::Create(
379 base::Bind(&LayerTreePixelTest::ReleaseTextureMailbox, 379 base::Bind(&LayerTreePixelTest::ReleaseTextureMailbox,
380 base::Unretained(this), 380 base::Unretained(this),
381 base::Passed(&context), 381 base::Passed(&context),
382 texture_id)); 382 texture_id));
383 } 383 }
384 384
385 } // namespace cc 385 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/layer_tree_pixel_test.h ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698