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

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

Issue 23171014: Fix UpdateTilePriorities viewport in Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add tests Created 7 years, 3 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_RENDERER_H_ 5 #ifndef CC_OUTPUT_RENDERER_H_
6 #define CC_OUTPUT_RENDERER_H_ 6 #define CC_OUTPUT_RENDERER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/quads/render_pass.h" 10 #include "cc/quads/render_pass.h"
11 #include "cc/trees/layer_tree_host.h" 11 #include "cc/trees/layer_tree_host.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 class CompositorFrameAck; 15 class CompositorFrameAck;
16 class CompositorFrameMetadata; 16 class CompositorFrameMetadata;
17 class ScopedResource; 17 class ScopedResource;
18 18
19 class CC_EXPORT RendererClient { 19 class CC_EXPORT RendererClient {
20 public: 20 public:
21 // Draw viewport in non-y-flipped window space. Note that while a draw is in 21 // Draw viewport and clip in non-y-flipped window space. Note that while a
aelias_OOO_until_Jul13 2013/09/03 19:52:09 Switched this to say "These return the draw viewpo
22 // progress, this is guaranteed to be contained within the output surface 22 // draw is in progress, these are guaranteed to be contained within the output
23 // size. 23 // surface size.
24 virtual gfx::Rect DeviceViewport() const = 0; 24 virtual gfx::Rect DeviceViewport() const = 0;
25 virtual gfx::Rect DeviceClip() const = 0;
25 26
26 virtual float DeviceScaleFactor() const = 0; 27 virtual float DeviceScaleFactor() const = 0;
27 virtual const LayerTreeSettings& Settings() const = 0; 28 virtual const LayerTreeSettings& Settings() const = 0;
28 virtual void SetFullRootLayerDamage() = 0; 29 virtual void SetFullRootLayerDamage() = 0;
29 virtual bool HasImplThread() const = 0; 30 virtual bool HasImplThread() const = 0;
30 virtual bool ShouldClearRootRenderPass() const = 0; 31 virtual bool ShouldClearRootRenderPass() const = 0;
31 virtual CompositorFrameMetadata MakeCompositorFrameMetadata() const = 0; 32 virtual CompositorFrameMetadata MakeCompositorFrameMetadata() const = 0;
32 virtual bool AllowPartialSwap() const = 0; 33 virtual bool AllowPartialSwap() const = 0;
33 virtual bool ExternalStencilTestEnabled() const = 0; 34 virtual bool ExternalStencilTestEnabled() const = 0;
34 35
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 87
87 RendererClient* client_; 88 RendererClient* client_;
88 89
89 private: 90 private:
90 DISALLOW_COPY_AND_ASSIGN(Renderer); 91 DISALLOW_COPY_AND_ASSIGN(Renderer);
91 }; 92 };
92 93
93 } // namespace cc 94 } // namespace cc
94 95
95 #endif // CC_OUTPUT_RENDERER_H_ 96 #endif // CC_OUTPUT_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698