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

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 in DisplayScheduler rather than 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 aura::Window* window_; 278 aura::Window* window_;
279 279
280 // Was |window_| destroyed? 280 // Was |window_| destroyed?
281 bool destroyed_; 281 bool destroyed_;
282 282
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 {}
289
290 void OnSurfaceDamaged(const cc::SurfaceId& id, bool* changed) override { 288 void OnSurfaceDamaged(const cc::SurfaceId& id, bool* changed) override {
291 *changed = true; 289 *changed = true;
292 } 290 }
293 }; 291 };
294 292
295 class FakeFrameSubscriber : public RenderWidgetHostViewFrameSubscriber { 293 class FakeFrameSubscriber : public RenderWidgetHostViewFrameSubscriber {
296 public: 294 public:
297 FakeFrameSubscriber(gfx::Size size, base::Callback<void(bool)> callback) 295 FakeFrameSubscriber(gfx::Size size, base::Callback<void(bool)> callback)
298 : size_(size), 296 : size_(size),
299 callback_(callback), 297 callback_(callback),
(...skipping 5242 matching lines...) Expand 10 before | Expand all | Expand 10 after
5542 // There is no composition in the beginning. 5540 // There is no composition in the beginning.
5543 EXPECT_FALSE(has_composition_text()); 5541 EXPECT_FALSE(has_composition_text());
5544 SetHasCompositionTextToTrue(); 5542 SetHasCompositionTextToTrue();
5545 view->ImeCancelComposition(); 5543 view->ImeCancelComposition();
5546 // The composition must have been canceled. 5544 // The composition must have been canceled.
5547 EXPECT_FALSE(has_composition_text()); 5545 EXPECT_FALSE(has_composition_text());
5548 } 5546 }
5549 } 5547 }
5550 5548
5551 } // namespace content 5549 } // namespace content
OLDNEW
« cc/surfaces/surface_observer.h ('K') | « components/viz/frame_sinks/mojo_frame_sink_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698