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

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

Issue 14772021: cc::OutputSurfaceClient::InitializeForGL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win compile by including ContextProvider from output_surface_client.h Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 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_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
6 #define CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ 6 #define CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
7 7
8 #include "base/memory/ref_counted.h"
8 #include "base/time.h" 9 #include "base/time.h"
9 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
11 #include "cc/output/context_provider.h"
10 #include "ui/gfx/rect.h" 12 #include "ui/gfx/rect.h"
11 13
12 namespace gfx { 14 namespace gfx {
13 class Transform; 15 class Transform;
14 } 16 }
15 17
16 namespace cc { 18 namespace cc {
17 19
18 class CompositorFrameAck; 20 class CompositorFrameAck;
19 21
20 class CC_EXPORT OutputSurfaceClient { 22 class CC_EXPORT OutputSurfaceClient {
21 public: 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 bool DeferredInitialize(
28 scoped_refptr<ContextProvider> offscreen_context_provider) = 0;
22 virtual void SetNeedsRedrawRect(gfx::Rect damage_rect) = 0; 29 virtual void SetNeedsRedrawRect(gfx::Rect damage_rect) = 0;
23 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, 30 virtual void OnVSyncParametersChanged(base::TimeTicks timebase,
24 base::TimeDelta interval) = 0; 31 base::TimeDelta interval) = 0;
25 virtual void BeginFrame(base::TimeTicks frame_time) = 0; 32 virtual void BeginFrame(base::TimeTicks frame_time) = 0;
26 virtual void OnSendFrameToParentCompositorAck( 33 virtual void OnSendFrameToParentCompositorAck(
27 const CompositorFrameAck& ack) = 0; 34 const CompositorFrameAck& ack) = 0;
28 virtual void OnSwapBuffersComplete() = 0; 35 virtual void OnSwapBuffersComplete() = 0;
29 virtual void DidLoseOutputSurface() = 0; 36 virtual void DidLoseOutputSurface() = 0;
30 virtual void SetExternalDrawConstraints(const gfx::Transform& transform, 37 virtual void SetExternalDrawConstraints(const gfx::Transform& transform,
31 gfx::Rect viewport) = 0; 38 gfx::Rect viewport) = 0;
32 39
33 protected: 40 protected:
34 virtual ~OutputSurfaceClient() {} 41 virtual ~OutputSurfaceClient() {}
35 }; 42 };
36 43
37 } // namespace cc 44 } // namespace cc
38 45
39 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ 46 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/output_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698