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

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

Issue 11417111: cc: Add PictureLayerTilingSet to manage PictureLayerTiling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win_rel Created 8 years 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
« no previous file with comments | « cc/test/fake_picture_layer_tiling_client.h ('k') | cc/test/fake_tile_manager_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "cc/test/fake_picture_layer_tiling_client.h"
6
7 namespace cc {
8
9 FakePictureLayerTilingClient::FakePictureLayerTilingClient()
10 : tile_manager_(&tile_manager_client_) {
11 }
12
13 FakePictureLayerTilingClient::~FakePictureLayerTilingClient() {
14 }
15
16 scoped_refptr<Tile> FakePictureLayerTilingClient::CreateTile(
17 PictureLayerTiling*,
18 gfx::Rect rect) {
19 return make_scoped_refptr(new Tile(&tile_manager_,
20 &pile_,
21 tile_size_,
22 GL_RGBA,
23 rect));
24 }
25
26 void FakePictureLayerTilingClient::SetTileSize(gfx::Size tile_size) {
27 tile_size_ = tile_size;
28 }
29
30 }
OLDNEW
« no previous file with comments | « cc/test/fake_picture_layer_tiling_client.h ('k') | cc/test/fake_tile_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698