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

Side by Side Diff: cc/layers/picture_layer_impl.cc

Issue 12603013: Part 10 of cc/ directory shuffles: layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « cc/layers/picture_layer_impl.h ('k') | cc/layers/picture_layer_impl_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/layers/picture_layer_impl.h"
6 6
7 #include "base/time.h" 7 #include "base/time.h"
8 #include "cc/append_quads_data.h"
9 #include "cc/base/math_util.h" 8 #include "cc/base/math_util.h"
10 #include "cc/base/util.h" 9 #include "cc/base/util.h"
11 #include "cc/debug/debug_colors.h" 10 #include "cc/debug/debug_colors.h"
12 #include "cc/quad_sink.h" 11 #include "cc/layers/append_quads_data.h"
12 #include "cc/layers/quad_sink.h"
13 #include "cc/quads/checkerboard_draw_quad.h" 13 #include "cc/quads/checkerboard_draw_quad.h"
14 #include "cc/quads/debug_border_draw_quad.h" 14 #include "cc/quads/debug_border_draw_quad.h"
15 #include "cc/quads/solid_color_draw_quad.h" 15 #include "cc/quads/solid_color_draw_quad.h"
16 #include "cc/quads/tile_draw_quad.h" 16 #include "cc/quads/tile_draw_quad.h"
17 #include "cc/trees/layer_tree_impl.h" 17 #include "cc/trees/layer_tree_impl.h"
18 #include "ui/gfx/quad_f.h" 18 #include "ui/gfx/quad_f.h"
19 #include "ui/gfx/rect_conversions.h" 19 #include "ui/gfx/rect_conversions.h"
20 #include "ui/gfx/size_conversions.h" 20 #include "ui/gfx/size_conversions.h"
21 21
22 namespace { 22 namespace {
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 scoped_ptr<base::Value> PictureLayerImpl::AsValue() const { 819 scoped_ptr<base::Value> PictureLayerImpl::AsValue() const {
820 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); 820 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue());
821 LayerImpl::AsValueInto(state.get()); 821 LayerImpl::AsValueInto(state.get());
822 822
823 state->SetDouble("ideal_contents_scale", ideal_contents_scale_); 823 state->SetDouble("ideal_contents_scale", ideal_contents_scale_);
824 state->Set("tilings", tilings_->AsValue().release()); 824 state->Set("tilings", tilings_->AsValue().release());
825 return state.PassAs<base::Value>(); 825 return state.PassAs<base::Value>();
826 } 826 }
827 827
828 } // namespace cc 828 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl.h ('k') | cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698