| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/macros.h" |
| 5 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 6 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 7 #include "base/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
| 8 #include "content/browser/compositor/software_output_device_ozone.h" | 9 #include "content/browser/compositor/software_output_device_ozone.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 10 #include "third_party/skia/include/core/SkCanvas.h" | 11 #include "third_party/skia/include/core/SkCanvas.h" |
| 11 #include "ui/compositor/compositor.h" | 12 #include "ui/compositor/compositor.h" |
| 12 #include "ui/compositor/test/context_factories_for_test.h" | 13 #include "ui/compositor/test/context_factories_for_test.h" |
| 13 #include "ui/gfx/geometry/size.h" | 14 #include "ui/gfx/geometry/size.h" |
| 14 #include "ui/gfx/skia_util.h" | 15 #include "ui/gfx/skia_util.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // Increase size. | 133 // Increase size. |
| 133 output_device_->Resize(size, 1.f); | 134 output_device_->Resize(size, 1.f); |
| 134 | 135 |
| 135 canvas = output_device_->BeginPaint(damage); | 136 canvas = output_device_->BeginPaint(damage); |
| 136 canvas_size.SetSize(canvas->getBaseLayerSize().width(), | 137 canvas_size.SetSize(canvas->getBaseLayerSize().width(), |
| 137 canvas->getBaseLayerSize().height()); | 138 canvas->getBaseLayerSize().height()); |
| 138 EXPECT_EQ(size.ToString(), canvas_size.ToString()); | 139 EXPECT_EQ(size.ToString(), canvas_size.ToString()); |
| 139 | 140 |
| 140 } | 141 } |
| 141 | 142 |
| OLD | NEW |