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

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

Issue 124063003: [NOT FOR COMMIT] Hacks to get hardware canvas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: only cc changes left Created 6 years, 11 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/single_thread_proxy.h » ('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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 settings.texture_id_allocation_chunk_size = 1; 96 settings.texture_id_allocation_chunk_size = 1;
97 return settings; 97 return settings;
98 } 98 }
99 99
100 virtual void SetUp() OVERRIDE { 100 virtual void SetUp() OVERRIDE {
101 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); 101 CreateHostImpl(DefaultSettings(), CreateOutputSurface());
102 } 102 }
103 103
104 virtual void TearDown() OVERRIDE {} 104 virtual void TearDown() OVERRIDE {}
105 105
106 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE {}
106 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} 107 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {}
107 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} 108 virtual void DidSwapBuffersOnImplThread() OVERRIDE {}
108 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} 109 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {}
109 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE {} 110 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE {}
110 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { 111 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE {
111 on_can_draw_state_changed_called_ = true; 112 on_can_draw_state_changed_called_ = true;
112 } 113 }
113 virtual void NotifyReadyToActivate() OVERRIDE { 114 virtual void NotifyReadyToActivate() OVERRIDE {
114 did_notify_ready_to_activate_ = true; 115 did_notify_ready_to_activate_ = true;
115 host_impl_->ActivatePendingTree(); 116 host_impl_->ActivatePendingTree();
(...skipping 5340 matching lines...) Expand 10 before | Expand all | Expand 10 after
5456 &set_needs_redraw_count)); 5457 &set_needs_redraw_count));
5457 // Empty damage rect won't signal the monitor. 5458 // Empty damage rect won't signal the monitor.
5458 host_impl_->SetNeedsRedrawRect(gfx::Rect()); 5459 host_impl_->SetNeedsRedrawRect(gfx::Rect());
5459 EXPECT_EQ(0, set_needs_commit_count); 5460 EXPECT_EQ(0, set_needs_commit_count);
5460 EXPECT_EQ(2, set_needs_redraw_count); 5461 EXPECT_EQ(2, set_needs_redraw_count);
5461 } 5462 }
5462 } 5463 }
5463 5464
5464 } // namespace 5465 } // namespace
5465 } // namespace cc 5466 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698