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

Side by Side Diff: ui/compositor/compositor.h

Issue 2444563002: cc: Remove "SwapBuffers" naming from LayerTreeHostSingleThreadClient (Closed)
Patch Set: swapsinglethread: fix-name-in-browsertest Created 4 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
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 #ifndef UI_COMPOSITOR_COMPOSITOR_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_
6 #define UI_COMPOSITOR_COMPOSITOR_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 void DidBeginMainFrame() override {} 353 void DidBeginMainFrame() override {}
354 void BeginMainFrame(const cc::BeginFrameArgs& args) override; 354 void BeginMainFrame(const cc::BeginFrameArgs& args) override;
355 void BeginMainFrameNotExpectedSoon() override; 355 void BeginMainFrameNotExpectedSoon() override;
356 void UpdateLayerTreeHost() override; 356 void UpdateLayerTreeHost() override;
357 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, 357 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta,
358 const gfx::Vector2dF& outer_delta, 358 const gfx::Vector2dF& outer_delta,
359 const gfx::Vector2dF& elastic_overscroll_delta, 359 const gfx::Vector2dF& elastic_overscroll_delta,
360 float page_scale, 360 float page_scale,
361 float top_controls_delta) override {} 361 float top_controls_delta) override {}
362 void RequestNewCompositorFrameSink() override; 362 void RequestNewCompositorFrameSink() override;
363 void DidInitializeCompositorFrameSink() override; 363 void DidInitializeCompositorFrameSink() override {}
364 void DidFailToInitializeCompositorFrameSink() override; 364 void DidFailToInitializeCompositorFrameSink() override;
365 void WillCommit() override {} 365 void WillCommit() override {}
366 void DidCommit() override; 366 void DidCommit() override;
367 void DidCommitAndDrawFrame() override; 367 void DidCommitAndDrawFrame() override {}
368 void DidReceiveCompositorFrameAck() override; 368 void DidReceiveCompositorFrameAck() override;
369 void DidCompletePageScaleAnimation() override {} 369 void DidCompletePageScaleAnimation() override {}
370 370
371 // cc::LayerTreeHostSingleThreadClient implementation. 371 // cc::LayerTreeHostSingleThreadClient implementation.
372 void DidPostSwapBuffers() override; 372 void DidSubmitCompositorFrame() override;
373 void DidAbortSwapBuffers() override; 373 void DidLoseCompositorFrameSink() override {}
374 374
375 bool IsLocked() { return compositor_lock_ != NULL; } 375 bool IsLocked() { return compositor_lock_ != NULL; }
376 376
377 void SetOutputIsSecure(bool output_is_secure); 377 void SetOutputIsSecure(bool output_is_secure);
378 378
379 const cc::LayerTreeDebugState& GetLayerTreeDebugState() const; 379 const cc::LayerTreeDebugState& GetLayerTreeDebugState() const;
380 void SetLayerTreeDebugState(const cc::LayerTreeDebugState& debug_state); 380 void SetLayerTreeDebugState(const cc::LayerTreeDebugState& debug_state);
381 const cc::RendererSettings& GetRendererSettings() const; 381 const cc::RendererSettings& GetRendererSettings() const;
382 382
383 LayerAnimatorCollection* layer_animator_collection() { 383 LayerAnimatorCollection* layer_animator_collection() {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 gfx::ColorSpace color_space_; 435 gfx::ColorSpace color_space_;
436 436
437 base::WeakPtrFactory<Compositor> weak_ptr_factory_; 437 base::WeakPtrFactory<Compositor> weak_ptr_factory_;
438 438
439 DISALLOW_COPY_AND_ASSIGN(Compositor); 439 DISALLOW_COPY_AND_ASSIGN(Compositor);
440 }; 440 };
441 441
442 } // namespace ui 442 } // namespace ui
443 443
444 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 444 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.h ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698