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/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
6 #include "base/message_loop/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
7 #include "base/thread_task_runner_handle.h" | 7 #include "base/thread_task_runner_handle.h" |
8 #include "content/browser/compositor/software_output_device_ozone.h" | 8 #include "content/browser/compositor/software_output_device_ozone.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "third_party/skia/include/core/SkDevice.h" | 10 #include "third_party/skia/include/core/SkDevice.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 void OnDamageRect(const gfx::Rect& damaged_region) override {} | 34 void OnDamageRect(const gfx::Rect& damaged_region) override {} |
35 void DispatchEvent(ui::Event* event) override {} | 35 void DispatchEvent(ui::Event* event) override {} |
36 void OnCloseRequest() override {} | 36 void OnCloseRequest() override {} |
37 void OnClosed() override {} | 37 void OnClosed() override {} |
38 void OnWindowStateChanged(ui::PlatformWindowState new_state) override {} | 38 void OnWindowStateChanged(ui::PlatformWindowState new_state) override {} |
39 void OnLostCapture() override {} | 39 void OnLostCapture() override {} |
40 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, | 40 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, |
41 float device_pixel_ratio) override { | 41 float device_pixel_ratio) override { |
42 widget_ = widget; | 42 widget_ = widget; |
43 } | 43 } |
| 44 void OnAcceleratedWidgetDestroyed() override { |
| 45 NOTREACHED(); |
| 46 } |
44 void OnActivationChanged(bool active) override {} | 47 void OnActivationChanged(bool active) override {} |
45 | 48 |
46 private: | 49 private: |
47 gfx::AcceleratedWidget widget_; | 50 gfx::AcceleratedWidget widget_; |
48 | 51 |
49 DISALLOW_COPY_AND_ASSIGN(TestPlatformWindowDelegate); | 52 DISALLOW_COPY_AND_ASSIGN(TestPlatformWindowDelegate); |
50 }; | 53 }; |
51 | 54 |
52 } // namespace | 55 } // namespace |
53 | 56 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // Increase size. | 133 // Increase size. |
131 output_device_->Resize(size, 1.f); | 134 output_device_->Resize(size, 1.f); |
132 | 135 |
133 canvas = output_device_->BeginPaint(damage); | 136 canvas = output_device_->BeginPaint(damage); |
134 canvas_size.SetSize(canvas->getDeviceSize().width(), | 137 canvas_size.SetSize(canvas->getDeviceSize().width(), |
135 canvas->getDeviceSize().height()); | 138 canvas->getDeviceSize().height()); |
136 EXPECT_EQ(size.ToString(), canvas_size.ToString()); | 139 EXPECT_EQ(size.ToString(), canvas_size.ToString()); |
137 | 140 |
138 } | 141 } |
139 | 142 |
OLD | NEW |