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

Side by Side Diff: content/browser/compositor/software_output_device_ozone_unittest.cc

Issue 1406333003: aura: Support SurfaceDestroyed() on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wth2
Patch Set: comment Created 5 years, 2 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
« no previous file with comments | « components/mus/ws/display_manager.cc ('k') | content/common/gpu/media/rendering_helper.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 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
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
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
OLDNEW
« no previous file with comments | « components/mus/ws/display_manager.cc ('k') | content/common/gpu/media/rendering_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698