OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "ui/gfx/compositor/test_texture.h" | 5 #include "ui/gfx/compositor/test/test_texture.h" |
6 | 6 |
7 #include "third_party/skia/include/core/SkCanvas.h" | 7 #include "third_party/skia/include/core/SkCanvas.h" |
8 #include "third_party/skia/include/core/SkDevice.h" | 8 #include "third_party/skia/include/core/SkDevice.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
11 | 11 |
12 // static | 12 // static |
13 int TestTexture::live_count_ = 0; | 13 int TestTexture::live_count_ = 0; |
14 | 14 |
15 TestTexture::TestTexture() { | 15 TestTexture::TestTexture() { |
(...skipping 10 matching lines...) Expand all Loading... |
26 const SkBitmap& bitmap = canvas.getDevice()->accessBitmap(false); | 26 const SkBitmap& bitmap = canvas.getDevice()->accessBitmap(false); |
27 bounds_of_last_paint_.SetRect( | 27 bounds_of_last_paint_.SetRect( |
28 origin.x(), origin.y(), bitmap.width(), bitmap.height()); | 28 origin.x(), origin.y(), bitmap.width(), bitmap.height()); |
29 } | 29 } |
30 | 30 |
31 void TestTexture::Draw(const ui::TextureDrawParams& params, | 31 void TestTexture::Draw(const ui::TextureDrawParams& params, |
32 const gfx::Rect& clip_bounds) { | 32 const gfx::Rect& clip_bounds) { |
33 } | 33 } |
34 | 34 |
35 } // namespace ui | 35 } // namespace ui |
OLD | NEW |