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

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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 SurfaceId CurrentSurfaceId(); 52 SurfaceId CurrentSurfaceId();
53 int GetMaxFramesPending(); 53 int GetMaxFramesPending();
54 54
55 // OutputSurfaceClient implementation. 55 // OutputSurfaceClient implementation.
56 virtual void DeferredInitialize() override {} 56 virtual void DeferredInitialize() override {}
57 virtual void ReleaseGL() override {} 57 virtual void ReleaseGL() override {}
58 virtual void CommitVSyncParameters(base::TimeTicks timebase, 58 virtual void CommitVSyncParameters(base::TimeTicks timebase,
59 base::TimeDelta interval) override; 59 base::TimeDelta interval) override;
60 virtual void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override {} 60 virtual void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override {}
61 virtual void BeginFrame(const BeginFrameArgs& args) override {}
62 virtual void DidSwapBuffers() override; 61 virtual void DidSwapBuffers() override;
63 virtual void DidSwapBuffersComplete() override; 62 virtual void DidSwapBuffersComplete() override;
64 virtual void ReclaimResources(const CompositorFrameAck* ack) override {} 63 virtual void ReclaimResources(const CompositorFrameAck* ack) override {}
65 virtual void DidLoseOutputSurface() override; 64 virtual void DidLoseOutputSurface() override;
66 virtual void SetExternalDrawConstraints( 65 virtual void SetExternalDrawConstraints(
67 const gfx::Transform& transform, 66 const gfx::Transform& transform,
68 const gfx::Rect& viewport, 67 const gfx::Rect& viewport,
69 const gfx::Rect& clip, 68 const gfx::Rect& clip,
70 const gfx::Rect& viewport_rect_for_tile_priority, 69 const gfx::Rect& viewport_rect_for_tile_priority,
71 const gfx::Transform& transform_for_tile_priority, 70 const gfx::Transform& transform_for_tile_priority,
(...skipping 24 matching lines...) Expand all
96 scoped_ptr<DirectRenderer> renderer_; 95 scoped_ptr<DirectRenderer> renderer_;
97 scoped_ptr<BlockingTaskRunner> blocking_main_thread_task_runner_; 96 scoped_ptr<BlockingTaskRunner> blocking_main_thread_task_runner_;
98 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; 97 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_;
99 98
100 DISALLOW_COPY_AND_ASSIGN(Display); 99 DISALLOW_COPY_AND_ASSIGN(Display);
101 }; 100 };
102 101
103 } // namespace cc 102 } // namespace cc
104 103
105 #endif // CC_SURFACES_DISPLAY_H_ 104 #endif // CC_SURFACES_DISPLAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698