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

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: rebase on TOT 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
« no previous file with comments | « cc/test/pixel_test.cc ('k') | cc/test/tiled_layer_test_common.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 11 matching lines...) Expand all
22 class FakeLayerUpdater : public LayerUpdater { 22 class FakeLayerUpdater : public LayerUpdater {
23 public: 23 public:
24 class Resource : public LayerUpdater::Resource { 24 class Resource : public LayerUpdater::Resource {
25 public: 25 public:
26 Resource(FakeLayerUpdater* updater, 26 Resource(FakeLayerUpdater* updater,
27 scoped_ptr<PrioritizedResource> resource); 27 scoped_ptr<PrioritizedResource> resource);
28 virtual ~Resource(); 28 virtual ~Resource();
29 29
30 virtual void Update(ResourceUpdateQueue* queue, 30 virtual void Update(ResourceUpdateQueue* queue,
31 const gfx::Rect& source_rect, 31 const gfx::Rect& source_rect,
32 gfx::Vector2d dest_offset, 32 const gfx::Vector2d& dest_offset,
33 bool partial_update) OVERRIDE; 33 bool partial_update) OVERRIDE;
34 34
35 private: 35 private:
36 FakeLayerUpdater* layer_; 36 FakeLayerUpdater* layer_;
37 SkBitmap bitmap_; 37 SkBitmap bitmap_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(Resource); 39 DISALLOW_COPY_AND_ASSIGN(Resource);
40 }; 40 };
41 41
42 FakeLayerUpdater(); 42 FakeLayerUpdater();
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 virtual ~FakeTiledLayerWithScaledBounds(); 151 virtual ~FakeTiledLayerWithScaledBounds();
152 gfx::Size forced_content_bounds_; 152 gfx::Size forced_content_bounds_;
153 153
154 private: 154 private:
155 DISALLOW_COPY_AND_ASSIGN(FakeTiledLayerWithScaledBounds); 155 DISALLOW_COPY_AND_ASSIGN(FakeTiledLayerWithScaledBounds);
156 }; 156 };
157 157
158 } // namespace cc 158 } // namespace cc
159 159
160 #endif // CC_TEST_TILED_LAYER_TEST_COMMON_H_ 160 #endif // CC_TEST_TILED_LAYER_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/test/pixel_test.cc ('k') | cc/test/tiled_layer_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698