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

Side by Side Diff: cc/surfaces/display.h

Issue 619843002: cc: Make separate interface for BeginFrame ipc from OutputSurface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CC_SURFACES_DISPLAY_H_ 5 #ifndef CC_SURFACES_DISPLAY_H_
6 #define CC_SURFACES_DISPLAY_H_ 6 #define CC_SURFACES_DISPLAY_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/output/output_surface_client.h" 9 #include "cc/output/output_surface_client.h"
10 #include "cc/output/renderer.h" 10 #include "cc/output/renderer.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 SurfaceId CurrentSurfaceId(); 51 SurfaceId CurrentSurfaceId();
52 int GetMaxFramesPending(); 52 int GetMaxFramesPending();
53 53
54 // OutputSurfaceClient implementation. 54 // OutputSurfaceClient implementation.
55 virtual void DeferredInitialize() override {} 55 virtual void DeferredInitialize() override {}
56 virtual void ReleaseGL() override {} 56 virtual void ReleaseGL() override {}
57 virtual void CommitVSyncParameters(base::TimeTicks timebase, 57 virtual void CommitVSyncParameters(base::TimeTicks timebase,
58 base::TimeDelta interval) override; 58 base::TimeDelta interval) override;
59 virtual void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override {} 59 virtual void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override {}
60 virtual void BeginFrame(const BeginFrameArgs& args) override {}
61 virtual void DidSwapBuffers() override; 60 virtual void DidSwapBuffers() override;
62 virtual void DidSwapBuffersComplete() override; 61 virtual void DidSwapBuffersComplete() override;
63 virtual void ReclaimResources(const CompositorFrameAck* ack) override {} 62 virtual void ReclaimResources(const CompositorFrameAck* ack) override {}
64 virtual void DidLoseOutputSurface() override; 63 virtual void DidLoseOutputSurface() override;
65 virtual void SetExternalDrawConstraints( 64 virtual void SetExternalDrawConstraints(
66 const gfx::Transform& transform, 65 const gfx::Transform& transform,
67 const gfx::Rect& viewport, 66 const gfx::Rect& viewport,
68 const gfx::Rect& clip, 67 const gfx::Rect& clip,
69 const gfx::Rect& viewport_rect_for_tile_priority, 68 const gfx::Rect& viewport_rect_for_tile_priority,
70 const gfx::Transform& transform_for_tile_priority, 69 const gfx::Transform& transform_for_tile_priority,
(...skipping 23 matching lines...) Expand all
94 scoped_ptr<DirectRenderer> renderer_; 93 scoped_ptr<DirectRenderer> renderer_;
95 scoped_ptr<BlockingTaskRunner> blocking_main_thread_task_runner_; 94 scoped_ptr<BlockingTaskRunner> blocking_main_thread_task_runner_;
96 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; 95 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_;
97 96
98 DISALLOW_COPY_AND_ASSIGN(Display); 97 DISALLOW_COPY_AND_ASSIGN(Display);
99 }; 98 };
100 99
101 } // namespace cc 100 } // namespace cc
102 101
103 #endif // CC_SURFACES_DISPLAY_H_ 102 #endif // CC_SURFACES_DISPLAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698