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

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

Issue 15579002: Implement transform/clip support for Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Turn on fuzzy comparator for new SoftwareRenderer tests 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
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/time.h" 8 #include "base/time.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
11 11
12 namespace gfx {
13 class Transform;
14 }
15
12 namespace cc { 16 namespace cc {
13 17
14 class CompositorFrameAck; 18 class CompositorFrameAck;
15 19
16 class CC_EXPORT OutputSurfaceClient { 20 class CC_EXPORT OutputSurfaceClient {
17 public: 21 public:
18 virtual void SetNeedsRedrawRect(gfx::Rect damage_rect) = 0; 22 virtual void SetNeedsRedrawRect(gfx::Rect damage_rect) = 0;
19 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, 23 virtual void OnVSyncParametersChanged(base::TimeTicks timebase,
20 base::TimeDelta interval) = 0; 24 base::TimeDelta interval) = 0;
21 virtual void BeginFrame(base::TimeTicks frame_time) = 0; 25 virtual void BeginFrame(base::TimeTicks frame_time) = 0;
22 virtual void OnSendFrameToParentCompositorAck( 26 virtual void OnSendFrameToParentCompositorAck(
23 const CompositorFrameAck& ack) = 0; 27 const CompositorFrameAck& ack) = 0;
24 virtual void OnSwapBuffersComplete() = 0; 28 virtual void OnSwapBuffersComplete() = 0;
25 virtual void DidLoseOutputSurface() = 0; 29 virtual void DidLoseOutputSurface() = 0;
30 virtual void SetExternalDrawConstraints(const gfx::Transform& transform,
31 gfx::Rect viewport) = 0;
26 32
27 protected: 33 protected:
28 virtual ~OutputSurfaceClient() {} 34 virtual ~OutputSurfaceClient() {}
29 }; 35 };
30 36
31 } // namespace cc 37 } // namespace cc
32 38
33 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ 39 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698