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

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

Issue 151093005: cc: Update Main RendererCapabilities on DeferredInitialize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cancel commits with stale caps, no tests yet Created 6 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 | Annotate | Revision Log
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 settings.texture_id_allocation_chunk_size = 1; 97 settings.texture_id_allocation_chunk_size = 1;
98 return settings; 98 return settings;
99 } 99 }
100 100
101 virtual void SetUp() OVERRIDE { 101 virtual void SetUp() OVERRIDE {
102 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); 102 CreateHostImpl(DefaultSettings(), CreateOutputSurface());
103 } 103 }
104 104
105 virtual void TearDown() OVERRIDE {} 105 virtual void TearDown() OVERRIDE {}
106 106
107 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE {}
107 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} 108 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {}
108 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} 109 virtual void DidSwapBuffersOnImplThread() OVERRIDE {}
109 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} 110 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {}
110 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE {} 111 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE {}
111 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { 112 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE {
112 on_can_draw_state_changed_called_ = true; 113 on_can_draw_state_changed_called_ = true;
113 } 114 }
114 virtual void NotifyReadyToActivate() OVERRIDE { 115 virtual void NotifyReadyToActivate() OVERRIDE {
115 did_notify_ready_to_activate_ = true; 116 did_notify_ready_to_activate_ = true;
116 host_impl_->ActivatePendingTree(); 117 host_impl_->ActivatePendingTree();
(...skipping 5651 matching lines...) Expand 10 before | Expand all | Expand 10 after
5768 &set_needs_redraw_count)); 5769 &set_needs_redraw_count));
5769 // Empty damage rect won't signal the monitor. 5770 // Empty damage rect won't signal the monitor.
5770 host_impl_->SetNeedsRedrawRect(gfx::Rect()); 5771 host_impl_->SetNeedsRedrawRect(gfx::Rect());
5771 EXPECT_EQ(0, set_needs_commit_count); 5772 EXPECT_EQ(0, set_needs_commit_count);
5772 EXPECT_EQ(2, set_needs_redraw_count); 5773 EXPECT_EQ(2, set_needs_redraw_count);
5773 } 5774 }
5774 } 5775 }
5775 5776
5776 } // namespace 5777 } // namespace
5777 } // namespace cc 5778 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698