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

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

Issue 14772021: cc::OutputSurfaceClient::InitializeForGL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cc refactors to reduce duplication Created 7 years, 7 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 host_impl_ = LayerTreeHostImpl::Create(settings, 83 host_impl_ = LayerTreeHostImpl::Create(settings,
84 this, 84 this,
85 &proxy_, 85 &proxy_,
86 &stats_instrumentation_); 86 &stats_instrumentation_);
87 host_impl_->InitializeRenderer(CreateOutputSurface()); 87 host_impl_->InitializeRenderer(CreateOutputSurface());
88 host_impl_->SetViewportSize(gfx::Size(10, 10)); 88 host_impl_->SetViewportSize(gfx::Size(10, 10));
89 } 89 }
90 90
91 virtual void TearDown() OVERRIDE {} 91 virtual void TearDown() OVERRIDE {}
92 92
93 virtual void DidUpdateCapabilitiesOnImplThread(
94 bool success,
95 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE {}
93 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} 96 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {}
94 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} 97 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {}
95 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, 98 virtual void OnVSyncParametersChanged(base::TimeTicks timebase,
96 base::TimeDelta interval) OVERRIDE {} 99 base::TimeDelta interval) OVERRIDE {}
97 virtual void BeginFrameOnImplThread(base::TimeTicks frame_time) 100 virtual void BeginFrameOnImplThread(base::TimeTicks frame_time)
98 OVERRIDE {} 101 OVERRIDE {}
99 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { 102 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE {
100 on_can_draw_state_changed_called_ = true; 103 on_can_draw_state_changed_called_ = true;
101 } 104 }
102 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE { 105 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE {
(...skipping 5591 matching lines...) Expand 10 before | Expand all | Expand 10 after
5694 EXPECT_EQ(0, software_device->frames_ended_); 5697 EXPECT_EQ(0, software_device->frames_ended_);
5695 5698
5696 DrawFrame(); 5699 DrawFrame();
5697 5700
5698 EXPECT_EQ(1, software_device->frames_began_); 5701 EXPECT_EQ(1, software_device->frames_began_);
5699 EXPECT_EQ(1, software_device->frames_ended_); 5702 EXPECT_EQ(1, software_device->frames_ended_);
5700 } 5703 }
5701 5704
5702 } // namespace 5705 } // namespace
5703 } // namespace cc 5706 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698