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

Side by Side Diff: ui/compositor/layer.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "ui/compositor/layer.h" 5 #include "ui/compositor/layer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "cc/base/scoped_ptr_algorithm.h"
13 #include "cc/content_layer.h" 14 #include "cc/content_layer.h"
14 #include "cc/delegated_frame_data.h" 15 #include "cc/delegated_frame_data.h"
15 #include "cc/delegated_renderer_layer.h" 16 #include "cc/delegated_renderer_layer.h"
16 #include "cc/scoped_ptr_algorithm.h"
17 #include "cc/solid_color_layer.h" 17 #include "cc/solid_color_layer.h"
18 #include "cc/texture_layer.h" 18 #include "cc/texture_layer.h"
19 #include "cc/transferable_resource.h" 19 #include "cc/transferable_resource.h"
20 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation. h" 20 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation. h"
21 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations .h" 21 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations .h"
22 #include "ui/base/animation/animation.h" 22 #include "ui/base/animation/animation.h"
23 #include "ui/compositor/compositor_switches.h" 23 #include "ui/compositor/compositor_switches.h"
24 #include "ui/compositor/dip_util.h" 24 #include "ui/compositor/dip_util.h"
25 #include "ui/compositor/layer_animator.h" 25 #include "ui/compositor/layer_animator.h"
26 #include "ui/gfx/canvas.h" 26 #include "ui/gfx/canvas.h"
27 #include "ui/gfx/display.h" 27 #include "ui/gfx/display.h"
28 #include "ui/gfx/interpolated_transform.h" 28 #include "ui/gfx/interpolated_transform.h"
29 #include "ui/gfx/point3_f.h"
29 #include "ui/gfx/point_conversions.h" 30 #include "ui/gfx/point_conversions.h"
30 #include "ui/gfx/point3_f.h"
31 #include "ui/gfx/size_conversions.h" 31 #include "ui/gfx/size_conversions.h"
32 32
33 namespace { 33 namespace {
34 34
35 const ui::Layer* GetRoot(const ui::Layer* layer) { 35 const ui::Layer* GetRoot(const ui::Layer* layer) {
36 while (layer->parent()) 36 while (layer->parent())
37 layer = layer->parent(); 37 layer = layer->parent();
38 return layer; 38 return layer;
39 } 39 }
40 40
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 texture_layer_->setUV(uv_top_left, uv_bottom_right); 901 texture_layer_->setUV(uv_top_left, uv_bottom_right);
902 } else if (delegated_renderer_layer_.get()) { 902 } else if (delegated_renderer_layer_.get()) {
903 delegated_renderer_layer_->SetDisplaySize( 903 delegated_renderer_layer_->SetDisplaySize(
904 ConvertSizeToPixel(this, delegated_frame_size_in_dip_)); 904 ConvertSizeToPixel(this, delegated_frame_size_in_dip_));
905 size.ClampToMax(delegated_frame_size_in_dip_); 905 size.ClampToMax(delegated_frame_size_in_dip_);
906 } 906 }
907 cc_layer_->SetBounds(ConvertSizeToPixel(this, size)); 907 cc_layer_->SetBounds(ConvertSizeToPixel(this, size));
908 } 908 }
909 909
910 } // namespace ui 910 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698