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

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

Issue 2897673002: Return resources immediately after a Surface is destroyed (Closed)
Patch Set: Check aggregator_ 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
« no previous file with comments | « components/viz/frame_sinks/mojo_frame_sink_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 OnSurfaceDiscarded(const cc::SurfaceId& id) override {}
293 }; 295 };
294 296
295 class FakeFrameSubscriber : public RenderWidgetHostViewFrameSubscriber { 297 class FakeFrameSubscriber : public RenderWidgetHostViewFrameSubscriber {
296 public: 298 public:
297 FakeFrameSubscriber(gfx::Size size, base::Callback<void(bool)> callback) 299 FakeFrameSubscriber(gfx::Size size, base::Callback<void(bool)> callback)
298 : size_(size), 300 : size_(size),
299 callback_(callback), 301 callback_(callback),
300 should_capture_(true), 302 should_capture_(true),
301 source_id_for_copy_request_(base::UnguessableToken::Create()) {} 303 source_id_for_copy_request_(base::UnguessableToken::Create()) {}
302 304
(...skipping 5239 matching lines...) Expand 10 before | Expand all | Expand 10 after
5542 // There is no composition in the beginning. 5544 // There is no composition in the beginning.
5543 EXPECT_FALSE(has_composition_text()); 5545 EXPECT_FALSE(has_composition_text());
5544 SetHasCompositionTextToTrue(); 5546 SetHasCompositionTextToTrue();
5545 view->ImeCancelComposition(); 5547 view->ImeCancelComposition();
5546 // The composition must have been canceled. 5548 // The composition must have been canceled.
5547 EXPECT_FALSE(has_composition_text()); 5549 EXPECT_FALSE(has_composition_text());
5548 } 5550 }
5549 } 5551 }
5550 5552
5551 } // namespace content 5553 } // namespace content
OLDNEW
« no previous file with comments | « 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