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

Side by Side Diff: ui/compositor/layer.cc

Issue 15648012: Update references to Blink's Platform API headers (remaining) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « ui/compositor/DEPS ('k') | ui/compositor/test_web_graphics_context_3d.h » ('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 (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/base/scoped_ptr_algorithm.h"
14 #include "cc/layers/content_layer.h" 14 #include "cc/layers/content_layer.h"
15 #include "cc/layers/delegated_renderer_layer.h" 15 #include "cc/layers/delegated_renderer_layer.h"
16 #include "cc/layers/solid_color_layer.h" 16 #include "cc/layers/solid_color_layer.h"
17 #include "cc/layers/texture_layer.h" 17 #include "cc/layers/texture_layer.h"
18 #include "cc/output/delegated_frame_data.h" 18 #include "cc/output/delegated_frame_data.h"
19 #include "cc/resources/transferable_resource.h" 19 #include "cc/resources/transferable_resource.h"
20 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation. h" 20 #include "third_party/WebKit/public/platform/WebFilterOperation.h"
21 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations .h" 21 #include "third_party/WebKit/public/platform/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/point3_f.h"
30 #include "ui/gfx/point_conversions.h" 30 #include "ui/gfx/point_conversions.h"
31 #include "ui/gfx/size_conversions.h" 31 #include "ui/gfx/size_conversions.h"
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 cc_layer_->SetBounds(ConvertSizeToPixel(this, size)); 939 cc_layer_->SetBounds(ConvertSizeToPixel(this, size));
940 } 940 }
941 941
942 void Layer::RecomputePosition() { 942 void Layer::RecomputePosition() {
943 cc_layer_->SetPosition(gfx::ScalePoint( 943 cc_layer_->SetPosition(gfx::ScalePoint(
944 gfx::PointF(bounds_.x(), bounds_.y()), 944 gfx::PointF(bounds_.x(), bounds_.y()),
945 device_scale_factor_)); 945 device_scale_factor_));
946 } 946 }
947 947
948 } // namespace ui 948 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/DEPS ('k') | ui/compositor/test_web_graphics_context_3d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698