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

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

Issue 304203005: Remove const LayerImpl* from QuadSink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@onlyQuadSink
Patch Set: Created 6 years, 6 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
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 #include "cc/test/mock_quad_culler.h" 5 #include "cc/test/mock_quad_culler.h"
6 6
7 namespace cc { 7 namespace cc {
8 8
9 MockQuadCuller::MockQuadCuller( 9 MockQuadCuller::MockQuadCuller(
10 RenderPass* render_pass, 10 RenderPass* render_pass,
11 MockOcclusionTracker<LayerImpl>* occlusion_tracker) 11 MockOcclusionTracker<LayerImpl>* occlusion_tracker)
12 : QuadSink(render_pass, NULL, occlusion_tracker), 12 : QuadSink(render_pass, occlusion_tracker),
13 occlusion_tracker_(occlusion_tracker) { 13 occlusion_tracker_(occlusion_tracker) {
14 } 14 }
15 15
16 MockQuadCuller::~MockQuadCuller() {} 16 MockQuadCuller::~MockQuadCuller() {}
17 17
18 gfx::Rect MockQuadCuller::UnoccludedContentRect( 18 gfx::Rect MockQuadCuller::UnoccludedContentRect(
19 const LayerImpl* layer,
19 const gfx::Rect& content_rect, 20 const gfx::Rect& content_rect,
20 const gfx::Transform& draw_transform) { 21 const gfx::Transform& draw_transform) {
21 return occlusion_tracker_->UnoccludedContentRect( 22 return occlusion_tracker_->UnoccludedContentRect(
22 layer_, content_rect, draw_transform); 23 layer, content_rect, draw_transform);
23 } 24 }
24 25
25 gfx::Rect MockQuadCuller::UnoccludedContributingSurfaceContentRect( 26 gfx::Rect MockQuadCuller::UnoccludedContributingSurfaceContentRect(
27 const LayerImpl* layer,
26 const gfx::Rect& content_rect, 28 const gfx::Rect& content_rect,
27 const gfx::Transform& draw_transform) { 29 const gfx::Transform& draw_transform) {
28 return occlusion_tracker_->UnoccludedContributingSurfaceContentRect( 30 return occlusion_tracker_->UnoccludedContributingSurfaceContentRect(
29 layer_, content_rect, draw_transform); 31 layer, content_rect, draw_transform);
30 } 32 }
31 33
32 } // namespace cc 34 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698