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

Side by Side Diff: cc/test/layer_test_common.h

Issue 388643002: Rotation into Video Layer + Content Transform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated layer{impl} tests Created 6 years, 5 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #ifndef CC_TEST_LAYER_TEST_COMMON_H_ 5 #ifndef CC_TEST_LAYER_TEST_COMMON_H_
6 #define CC_TEST_LAYER_TEST_COMMON_H_ 6 #define CC_TEST_LAYER_TEST_COMMON_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/quads/render_pass.h" 10 #include "cc/quads/render_pass.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 const gfx::Rect& occluded); 104 const gfx::Rect& occluded);
105 void AppendSurfaceQuadsWithOcclusion(RenderSurfaceImpl* surface_impl, 105 void AppendSurfaceQuadsWithOcclusion(RenderSurfaceImpl* surface_impl,
106 const gfx::Rect& occluded); 106 const gfx::Rect& occluded);
107 107
108 OutputSurface* output_surface() const { 108 OutputSurface* output_surface() const {
109 return host_->host_impl()->output_surface(); 109 return host_->host_impl()->output_surface();
110 } 110 }
111 ResourceProvider* resource_provider() const { 111 ResourceProvider* resource_provider() const {
112 return host_->host_impl()->resource_provider(); 112 return host_->host_impl()->resource_provider();
113 } 113 }
114 FakeLayerTreeHost* host() const { return host_.get(); }
enne (OOO) 2014/07/23 21:46:53 This seems fine. Kind of surprised it wasn't need
114 LayerImpl* root_layer() const { return root_layer_impl_.get(); } 115 LayerImpl* root_layer() const { return root_layer_impl_.get(); }
115 FakeLayerTreeHostImpl* host_impl() const { return host_->host_impl(); } 116 FakeLayerTreeHostImpl* host_impl() const { return host_->host_impl(); }
116 Proxy* proxy() const { return host_->host_impl()->proxy(); } 117 Proxy* proxy() const { return host_->host_impl()->proxy(); }
117 const QuadList& quad_list() const { return render_pass_->quad_list; } 118 const QuadList& quad_list() const { return render_pass_->quad_list; }
118 119
119 private: 120 private:
120 scoped_ptr<FakeLayerTreeHost> host_; 121 scoped_ptr<FakeLayerTreeHost> host_;
121 scoped_ptr<LayerImpl> root_layer_impl_; 122 scoped_ptr<LayerImpl> root_layer_impl_;
122 scoped_ptr<RenderPass> render_pass_; 123 scoped_ptr<RenderPass> render_pass_;
123 MockOcclusionTracker<LayerImpl> occlusion_tracker_; 124 MockOcclusionTracker<LayerImpl> occlusion_tracker_;
124 }; 125 };
125 }; 126 };
126 127
127 } // namespace cc 128 } // namespace cc
128 129
129 #endif // CC_TEST_LAYER_TEST_COMMON_H_ 130 #endif // CC_TEST_LAYER_TEST_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698