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

Side by Side Diff: cc/output/output_surface_client.h

Issue 1533773002: Delete CC. (Closed) Base URL: git@github.com:domokit/mojo.git@cl-2e
Patch Set: rebase Created 5 years 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 | « cc/output/output_surface.cc ('k') | cc/output/output_surface_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
6 #define CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
7
8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/time/time.h"
11 #include "cc/output/context_provider.h"
12 #include "ui/gfx/geometry/rect.h"
13
14 namespace gfx {
15 class Transform;
16 }
17
18 namespace cc {
19
20 class CompositorFrameAck;
21
22 class OutputSurfaceClient {
23 public:
24 // Called to synchronously re-initialize using the Context3D. Upon returning
25 // the compositor should be able to draw using GL what was previously
26 // committed.
27 virtual void DeferredInitialize() = 0;
28 // Must call OutputSurface::ReleaseContextProvider inside this call.
29 virtual void ReleaseGL() = 0;
30 virtual void CommitVSyncParameters(base::TimeTicks timebase,
31 base::TimeDelta interval) = 0;
32 virtual void SetNeedsRedrawRect(const gfx::Rect& damage_rect) = 0;
33 virtual void DidSwapBuffers() = 0;
34 virtual void DidSwapBuffersComplete() = 0;
35 virtual void ReclaimResources(const CompositorFrameAck* ack) = 0;
36 virtual void DidLoseOutputSurface() = 0;
37 virtual void SetExternalDrawConstraints(
38 const gfx::Transform& transform,
39 const gfx::Rect& viewport,
40 const gfx::Rect& clip,
41 const gfx::Rect& viewport_rect_for_tile_priority,
42 const gfx::Transform& transform_for_tile_priority,
43 bool resourceless_software_draw) = 0;
44 // If set, |callback| will be called subsequent to each new tree activation,
45 // regardless of the compositor visibility or damage. |callback| must remain
46 // valid for the lifetime of the OutputSurfaceClient or until unregisted --
47 // use SetTreeActivationCallback(base::Closure()) to unregister it.
48 virtual void SetTreeActivationCallback(const base::Closure& callback) = 0;
49
50 protected:
51 virtual ~OutputSurfaceClient() {}
52 };
53
54 } // namespace cc
55
56 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/output/output_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698