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

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

Issue 2336853002: cc: Plumb device color space through to rasterization (Closed)
Patch Set: Use suggested approach Created 4 years, 3 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 | « no previous file | cc/test/fake_tile_manager_client.cc » ('j') | cc/tiles/tile_manager.cc » ('J')
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_FAKE_TILE_MANAGER_CLIENT_H_ 5 #ifndef CC_TEST_FAKE_TILE_MANAGER_CLIENT_H_
6 #define CC_TEST_FAKE_TILE_MANAGER_CLIENT_H_ 6 #define CC_TEST_FAKE_TILE_MANAGER_CLIENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "cc/tiles/tile_manager.h" 10 #include "cc/tiles/tile_manager.h"
11 11
12 namespace cc { 12 namespace cc {
13 13
14 class FakeTileManagerClient : public TileManagerClient { 14 class FakeTileManagerClient : public TileManagerClient {
15 public: 15 public:
16 FakeTileManagerClient(); 16 FakeTileManagerClient();
17 ~FakeTileManagerClient() override; 17 ~FakeTileManagerClient() override;
18 18
19 // TileManagerClient implementation. 19 // TileManagerClient implementation.
20 void NotifyReadyToActivate() override {} 20 void NotifyReadyToActivate() override {}
21 void NotifyReadyToDraw() override {} 21 void NotifyReadyToDraw() override {}
22 void NotifyAllTileTasksCompleted() override {} 22 void NotifyAllTileTasksCompleted() override {}
23 void NotifyTileStateChanged(const Tile* tile) override {} 23 void NotifyTileStateChanged(const Tile* tile) override {}
24 std::unique_ptr<RasterTilePriorityQueue> BuildRasterQueue( 24 std::unique_ptr<RasterTilePriorityQueue> BuildRasterQueue(
25 TreePriority tree_priority, 25 TreePriority tree_priority,
26 RasterTilePriorityQueue::Type type) override; 26 RasterTilePriorityQueue::Type type) override;
27 std::unique_ptr<EvictionTilePriorityQueue> BuildEvictionQueue( 27 std::unique_ptr<EvictionTilePriorityQueue> BuildEvictionQueue(
28 TreePriority tree_priority) override; 28 TreePriority tree_priority) override;
29 void SetIsLikelyToRequireADraw(bool is_likely_to_require_a_draw) override {} 29 void SetIsLikelyToRequireADraw(bool is_likely_to_require_a_draw) override {}
30 const gfx::ColorSpace& GetTileColorSpace() const override;
31
32 gfx::ColorSpace tile_color_space_;
vmpstr 2016/09/14 23:00:43 Make this private, please.
ccameron 2016/09/15 07:13:42 Changed to return-by-value, and so this isn't need
30 }; 33 };
31 34
32 } // namespace cc 35 } // namespace cc
33 36
34 #endif // CC_TEST_FAKE_TILE_MANAGER_CLIENT_H_ 37 #endif // CC_TEST_FAKE_TILE_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | cc/test/fake_tile_manager_client.cc » ('j') | cc/tiles/tile_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698