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

Side by Side Diff: cc/picture_layer_impl.cc

Issue 12472028: Part 1 of cc/ directory shuffles: base (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
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/base/math_util.h"
10 #include "cc/base/util.h"
9 #include "cc/checkerboard_draw_quad.h" 11 #include "cc/checkerboard_draw_quad.h"
10 #include "cc/debug_border_draw_quad.h" 12 #include "cc/debug_border_draw_quad.h"
11 #include "cc/debug_colors.h" 13 #include "cc/debug_colors.h"
12 #include "cc/layer_tree_impl.h" 14 #include "cc/layer_tree_impl.h"
13 #include "cc/math_util.h"
14 #include "cc/quad_sink.h" 15 #include "cc/quad_sink.h"
15 #include "cc/solid_color_draw_quad.h" 16 #include "cc/solid_color_draw_quad.h"
16 #include "cc/tile_draw_quad.h" 17 #include "cc/tile_draw_quad.h"
17 #include "cc/util.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 {
23 const float kMaxScaleRatioDuringPinch = 2.0f; 23 const float kMaxScaleRatioDuringPinch = 2.0f;
24 } 24 }
25 25
26 namespace cc { 26 namespace cc {
27 27
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 scoped_ptr<base::Value> PictureLayerImpl::AsValue() const { 812 scoped_ptr<base::Value> PictureLayerImpl::AsValue() const {
813 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); 813 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue());
814 LayerImpl::AsValueInto(state.get()); 814 LayerImpl::AsValueInto(state.get());
815 815
816 state->SetDouble("ideal_contents_scale", ideal_contents_scale_); 816 state->SetDouble("ideal_contents_scale", ideal_contents_scale_);
817 state->Set("tilings", tilings_->AsValue().release()); 817 state->Set("tilings", tilings_->AsValue().release());
818 return state.PassAs<base::Value>(); 818 return state.PassAs<base::Value>();
819 } 819 }
820 820
821 } // namespace cc 821 } // namespace cc
OLDNEW
« cc/cc.gyp ('K') | « cc/picture_layer_impl.h ('k') | cc/picture_layer_tiling.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698