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

Side by Side Diff: cc/picture_layer_impl.cc

Issue 11472021: cc: Pass LayerTreeHostImpl to LayerImpl constructor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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/picture_layer_impl.h ('k') | cc/prioritized_resource_unittest.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 #include "cc/picture_layer_impl.h" 5 #include "cc/picture_layer_impl.h"
6 6
7 #include "base/time.h" 7 #include "base/time.h"
8 #include "cc/append_quads_data.h" 8 #include "cc/append_quads_data.h"
9 #include "cc/checkerboard_draw_quad.h" 9 #include "cc/checkerboard_draw_quad.h"
10 #include "cc/debug_border_draw_quad.h" 10 #include "cc/debug_border_draw_quad.h"
11 #include "cc/debug_colors.h" 11 #include "cc/debug_colors.h"
12 #include "cc/layer_tree_host_impl.h" 12 #include "cc/layer_tree_host_impl.h"
13 #include "cc/math_util.h" 13 #include "cc/math_util.h"
14 #include "cc/quad_sink.h" 14 #include "cc/quad_sink.h"
15 #include "cc/solid_color_draw_quad.h" 15 #include "cc/solid_color_draw_quad.h"
16 #include "cc/tile_draw_quad.h" 16 #include "cc/tile_draw_quad.h"
17 #include "ui/gfx/quad_f.h" 17 #include "ui/gfx/quad_f.h"
18 18
19 namespace cc { 19 namespace cc {
20 20
21 PictureLayerImpl::PictureLayerImpl(int id) : 21 PictureLayerImpl::PictureLayerImpl(LayerTreeHostImpl* host, int id)
22 LayerImpl(id), 22 : LayerImpl(host, id),
23 tilings_(this), 23 tilings_(this),
24 pile_(PicturePileImpl::Create()), 24 pile_(PicturePileImpl::Create()),
25 last_update_time_(0) { 25 last_update_time_(0) {
26 } 26 }
27 27
28 PictureLayerImpl::~PictureLayerImpl() { 28 PictureLayerImpl::~PictureLayerImpl() {
29 } 29 }
30 30
31 const char* PictureLayerImpl::layerTypeAsString() const { 31 const char* PictureLayerImpl::layerTypeAsString() const {
32 return "PictureLayer"; 32 return "PictureLayer";
33 } 33 }
34 34
35 void PictureLayerImpl::appendQuads(QuadSink& quadSink, 35 void PictureLayerImpl::appendQuads(QuadSink& quadSink,
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 GL_RGBA, 172 GL_RGBA,
173 rect, 173 rect,
174 tiling->contents_scale())); 174 tiling->contents_scale()));
175 } 175 }
176 176
177 void PictureLayerImpl::SyncFromActiveLayer(const PictureLayerImpl* other) { 177 void PictureLayerImpl::SyncFromActiveLayer(const PictureLayerImpl* other) {
178 tilings_.CloneFrom(other->tilings_); 178 tilings_.CloneFrom(other->tilings_);
179 } 179 }
180 180
181 } // namespace cc 181 } // namespace cc
OLDNEW
« no previous file with comments | « cc/picture_layer_impl.h ('k') | cc/prioritized_resource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698