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

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

Issue 132163009: [#6]Pass gfx structs by const ref (gfx::Vector2d) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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_TILED_LAYER_TEST_COMMON_H_ 5 #ifndef CC_TEST_TILED_LAYER_TEST_COMMON_H_
6 #define CC_TEST_TILED_LAYER_TEST_COMMON_H_ 6 #define CC_TEST_TILED_LAYER_TEST_COMMON_H_
7 7
8 #include "cc/base/region.h" 8 #include "cc/base/region.h"
9 #include "cc/layers/tiled_layer.h" 9 #include "cc/layers/tiled_layer.h"
10 #include "cc/layers/tiled_layer_impl.h" 10 #include "cc/layers/tiled_layer_impl.h"
(...skipping 12 matching lines...) Expand all
23 class FakeLayerUpdater : public LayerUpdater { 23 class FakeLayerUpdater : public LayerUpdater {
24 public: 24 public:
25 class Resource : public LayerUpdater::Resource { 25 class Resource : public LayerUpdater::Resource {
26 public: 26 public:
27 Resource(FakeLayerUpdater* updater, 27 Resource(FakeLayerUpdater* updater,
28 scoped_ptr<PrioritizedResource> resource); 28 scoped_ptr<PrioritizedResource> resource);
29 virtual ~Resource(); 29 virtual ~Resource();
30 30
31 virtual void Update(ResourceUpdateQueue* queue, 31 virtual void Update(ResourceUpdateQueue* queue,
32 const gfx::Rect& source_rect, 32 const gfx::Rect& source_rect,
33 gfx::Vector2d dest_offset, 33 const gfx::Vector2d& dest_offset,
34 bool partial_update) OVERRIDE; 34 bool partial_update) OVERRIDE;
35 35
36 private: 36 private:
37 FakeLayerUpdater* layer_; 37 FakeLayerUpdater* layer_;
38 SkBitmap bitmap_; 38 SkBitmap bitmap_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(Resource); 40 DISALLOW_COPY_AND_ASSIGN(Resource);
41 }; 41 };
42 42
43 FakeLayerUpdater(); 43 FakeLayerUpdater();
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 virtual ~FakeTiledLayerWithScaledBounds(); 152 virtual ~FakeTiledLayerWithScaledBounds();
153 gfx::Size forced_content_bounds_; 153 gfx::Size forced_content_bounds_;
154 154
155 private: 155 private:
156 DISALLOW_COPY_AND_ASSIGN(FakeTiledLayerWithScaledBounds); 156 DISALLOW_COPY_AND_ASSIGN(FakeTiledLayerWithScaledBounds);
157 }; 157 };
158 158
159 } // namespace cc 159 } // namespace cc
160 160
161 #endif // CC_TEST_TILED_LAYER_TEST_COMMON_H_ 161 #endif // CC_TEST_TILED_LAYER_TEST_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698