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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura_unittest.cc

Issue 2854163003: [cc] Plumb BeginFrameAcks through SurfaceManager to DisplayScheduler. (Closed)
Patch Set: Track state per surface. Created 3 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <tuple> 10 #include <tuple>
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 DISALLOW_COPY_AND_ASSIGN(TestWindowObserver); 283 DISALLOW_COPY_AND_ASSIGN(TestWindowObserver);
284 }; 284 };
285 285
286 class FakeSurfaceObserver : public cc::SurfaceObserver { 286 class FakeSurfaceObserver : public cc::SurfaceObserver {
287 public: 287 public:
288 void OnSurfaceCreated(const cc::SurfaceInfo& surface_info) override {} 288 void OnSurfaceCreated(const cc::SurfaceInfo& surface_info) override {}
289 289
290 void OnSurfaceDamaged(const cc::SurfaceId& id, bool* changed) override { 290 void OnSurfaceDamaged(const cc::SurfaceId& id, bool* changed) override {
291 *changed = true; 291 *changed = true;
292 } 292 }
293
294 void OnSurfaceProducerStateChanged(const cc::SurfaceId& surface_id) override {
295 }
293 }; 296 };
294 297
295 class FakeFrameSubscriber : public RenderWidgetHostViewFrameSubscriber { 298 class FakeFrameSubscriber : public RenderWidgetHostViewFrameSubscriber {
296 public: 299 public:
297 FakeFrameSubscriber(gfx::Size size, base::Callback<void(bool)> callback) 300 FakeFrameSubscriber(gfx::Size size, base::Callback<void(bool)> callback)
298 : size_(size), 301 : size_(size),
299 callback_(callback), 302 callback_(callback),
300 should_capture_(true), 303 should_capture_(true),
301 source_id_for_copy_request_(base::UnguessableToken::Create()) {} 304 source_id_for_copy_request_(base::UnguessableToken::Create()) {}
302 305
(...skipping 5244 matching lines...) Expand 10 before | Expand all | Expand 10 after
5547 // There is no composition in the beginning. 5550 // There is no composition in the beginning.
5548 EXPECT_FALSE(has_composition_text()); 5551 EXPECT_FALSE(has_composition_text());
5549 SetHasCompositionTextToTrue(); 5552 SetHasCompositionTextToTrue();
5550 view->ImeCancelComposition(); 5553 view->ImeCancelComposition();
5551 // The composition must have been canceled. 5554 // The composition must have been canceled.
5552 EXPECT_FALSE(has_composition_text()); 5555 EXPECT_FALSE(has_composition_text());
5553 } 5556 }
5554 } 5557 }
5555 5558
5556 } // namespace content 5559 } // namespace content
OLDNEW
« cc/surfaces/display_scheduler.h ('K') | « components/viz/frame_sinks/mojo_frame_sink_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698