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

Side by Side Diff: cc/tiled_layer_impl.cc

Issue 11308153: Migrate most of cc/ from WebKit::WebTransformationMatrix to gfx::Transform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch for landing 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/tiled_layer_impl.h ('k') | cc/tiled_layer_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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/tiled_layer_impl.h" 5 #include "cc/tiled_layer_impl.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "cc/append_quads_data.h" 9 #include "cc/append_quads_data.h"
10 #include "cc/checkerboard_draw_quad.h" 10 #include "cc/checkerboard_draw_quad.h"
11 #include "cc/debug_border_draw_quad.h" 11 #include "cc/debug_border_draw_quad.h"
12 #include "cc/debug_colors.h" 12 #include "cc/debug_colors.h"
13 #include "cc/layer_tiling_data.h" 13 #include "cc/layer_tiling_data.h"
14 #include "cc/math_util.h" 14 #include "cc/math_util.h"
15 #include "cc/quad_sink.h" 15 #include "cc/quad_sink.h"
16 #include "cc/solid_color_draw_quad.h" 16 #include "cc/solid_color_draw_quad.h"
17 #include "cc/tile_draw_quad.h" 17 #include "cc/tile_draw_quad.h"
18 #include "third_party/khronos/GLES2/gl2.h" 18 #include "third_party/khronos/GLES2/gl2.h"
19 #include "third_party/skia/include/core/SkColor.h" 19 #include "third_party/skia/include/core/SkColor.h"
20 #include "ui/gfx/quad_f.h" 20 #include "ui/gfx/quad_f.h"
21 21
22 using namespace std; 22 using namespace std;
23 using WebKit::WebTransformationMatrix;
24 23
25 namespace cc { 24 namespace cc {
26 25
27 // Non-debug checkerboards are grey. 26 // Non-debug checkerboards are grey.
28 const SkColor kTileCheckerboardColor = SkColorSetRGB(241, 241, 241); 27 const SkColor kTileCheckerboardColor = SkColorSetRGB(241, 241, 241);
29 28
30 class DrawableTile : public LayerTilingData::Tile { 29 class DrawableTile : public LayerTilingData::Tile {
31 public: 30 public:
32 static scoped_ptr<DrawableTile> create() { return make_scoped_ptr(new Drawab leTile()); } 31 static scoped_ptr<DrawableTile> create() { return make_scoped_ptr(new Drawab leTile()); }
33 32
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 { 243 {
245 m_tiler->reset(); 244 m_tiler->reset();
246 } 245 }
247 246
248 const char* TiledLayerImpl::layerTypeAsString() const 247 const char* TiledLayerImpl::layerTypeAsString() const
249 { 248 {
250 return "ContentLayer"; 249 return "ContentLayer";
251 } 250 }
252 251
253 } // namespace cc 252 } // namespace cc
OLDNEW
« no previous file with comments | « cc/tiled_layer_impl.h ('k') | cc/tiled_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698