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

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

Issue 11419269: cc: Give ownership of render passes to the renderer when drawing a frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/test/layer_tree_test_common.h ('k') | no next file » | 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/test/layer_tree_test_common.h" 5 #include "cc/test/layer_tree_test_common.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "cc/active_animation.h" 8 #include "cc/active_animation.h"
9 #include "cc/content_layer.h" 9 #include "cc/content_layer.h"
10 #include "cc/input_handler.h" 10 #include "cc/input_handler.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 108 }
109 109
110 bool MockLayerTreeHostImpl::prepareToDraw(FrameData& frame) 110 bool MockLayerTreeHostImpl::prepareToDraw(FrameData& frame)
111 { 111 {
112 bool result = LayerTreeHostImpl::prepareToDraw(frame); 112 bool result = LayerTreeHostImpl::prepareToDraw(frame);
113 if (!m_testHooks->prepareToDrawOnThread(this)) 113 if (!m_testHooks->prepareToDrawOnThread(this))
114 result = false; 114 result = false;
115 return result; 115 return result;
116 } 116 }
117 117
118 void MockLayerTreeHostImpl::drawLayers(const FrameData& frame) 118 void MockLayerTreeHostImpl::drawLayers(FrameData& frame)
119 { 119 {
120 LayerTreeHostImpl::drawLayers(frame); 120 LayerTreeHostImpl::drawLayers(frame);
121 m_testHooks->drawLayersOnThread(this); 121 m_testHooks->drawLayersOnThread(this);
122 } 122 }
123 123
124 void MockLayerTreeHostImpl::animateLayers(base::TimeTicks monotonicTime, base::T ime wallClockTime) 124 void MockLayerTreeHostImpl::animateLayers(base::TimeTicks monotonicTime, base::T ime wallClockTime)
125 { 125 {
126 m_testHooks->willAnimateLayers(this, monotonicTime); 126 m_testHooks->willAnimateLayers(this, monotonicTime);
127 LayerTreeHostImpl::animateLayers(monotonicTime, wallClockTime); 127 LayerTreeHostImpl::animateLayers(monotonicTime, wallClockTime);
128 m_testHooks->animateLayers(this, monotonicTime); 128 m_testHooks->animateLayers(this, monotonicTime);
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 ASSERT_FALSE(m_layerTreeHost.get()); 524 ASSERT_FALSE(m_layerTreeHost.get());
525 m_client.reset(); 525 m_client.reset();
526 if (m_timedOut) { 526 if (m_timedOut) {
527 FAIL() << "Test timed out"; 527 FAIL() << "Test timed out";
528 return; 528 return;
529 } 529 }
530 afterTest(); 530 afterTest();
531 } 531 }
532 532
533 } // namespace WebKitTests 533 } // namespace WebKitTests
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698