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

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

Issue 1416493010: Clean up Mac swap acknowledgement code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update latency info Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/run_loop.h" 5 #include "base/run_loop.h"
6 #include "base/single_thread_task_runner.h" 6 #include "base/single_thread_task_runner.h"
7 #include "cc/test/fake_output_surface_client.h" 7 #include "cc/test/fake_output_surface_client.h"
8 #include "cc/test/test_context_provider.h" 8 #include "cc/test/test_context_provider.h"
9 #include "cc/test/test_web_graphics_context_3d.h" 9 #include "cc/test/test_web_graphics_context_3d.h"
10 #include "content/browser/compositor/browser_compositor_output_surface.h" 10 #include "content/browser/compositor/browser_compositor_output_surface.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 void OnReflectorChanged() override { 88 void OnReflectorChanged() override {
89 if (!reflector_) { 89 if (!reflector_) {
90 reflector_texture_.reset(); 90 reflector_texture_.reset();
91 } else { 91 } else {
92 reflector_texture_.reset(new ReflectorTexture(context_provider())); 92 reflector_texture_.reset(new ReflectorTexture(context_provider()));
93 reflector_->OnSourceTextureMailboxUpdated(reflector_texture_->mailbox()); 93 reflector_->OnSourceTextureMailboxUpdated(reflector_texture_->mailbox());
94 } 94 }
95 } 95 }
96 96
97 void OnGpuSwapBuffersCompleted(
98 const std::vector<ui::LatencyInfo>& latency_info,
99 gfx::SwapResult result) override {
100 NOTREACHED();
101 }
102
97 #if defined(OS_MACOSX) 103 #if defined(OS_MACOSX)
98 void OnSurfaceDisplayed() override {}
99 void SetSurfaceSuspendedForRecycle(bool suspended) override {} 104 void SetSurfaceSuspendedForRecycle(bool suspended) override {}
100 bool SurfaceShouldNotShowFramesAfterSuspendForRecycle() const override { 105 bool SurfaceShouldNotShowFramesAfterSuspendForRecycle() const override {
101 return false; 106 return false;
102 } 107 }
103 #endif 108 #endif
104 109
105 private: 110 private:
106 scoped_ptr<ReflectorTexture> reflector_texture_; 111 scoped_ptr<ReflectorTexture> reflector_texture_;
107 }; 112 };
108 113
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 plane_2.plane_z_order = 1; 220 plane_2.plane_z_order = 1;
216 list.push_back(plane_1); 221 list.push_back(plane_1);
217 list.push_back(plane_2); 222 list.push_back(plane_2);
218 output_surface_->GetOverlayCandidateValidator()->CheckOverlaySupport(&list); 223 output_surface_->GetOverlayCandidateValidator()->CheckOverlaySupport(&list);
219 EXPECT_FALSE(list[0].overlay_handled); 224 EXPECT_FALSE(list[0].overlay_handled);
220 } 225 }
221 #endif // defined(USE_OZONE) 226 #endif // defined(USE_OZONE)
222 227
223 } // namespace 228 } // namespace
224 } // namespace content 229 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698