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

Unified Diff: cc/test/pixel_test_output_surface.h

Issue 23961003: cc: Remove most methods from RendererClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rendererclient: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/pixel_test.cc ('k') | cc/test/pixel_test_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/pixel_test_output_surface.h
diff --git a/cc/test/pixel_test_output_surface.h b/cc/test/pixel_test_output_surface.h
index bb6fdfc39bfab5d2b47ccf916f7bfb5de7aac92d..0b58ac263ded5f3dcbf82f9fc1e52fe3488ff528 100644
--- a/cc/test/pixel_test_output_surface.h
+++ b/cc/test/pixel_test_output_surface.h
@@ -12,13 +12,12 @@ namespace cc {
class PixelTestOutputSurface : public OutputSurface {
public:
explicit PixelTestOutputSurface(
- scoped_refptr<ContextProvider> context_provider)
- : OutputSurface(context_provider) {}
+ scoped_refptr<ContextProvider> context_provider);
explicit PixelTestOutputSurface(
- scoped_ptr<cc::SoftwareOutputDevice> software_device)
- : OutputSurface(software_device.Pass()) {}
+ scoped_ptr<cc::SoftwareOutputDevice> software_device);
virtual void Reshape(gfx::Size size, float scale_factor) OVERRIDE;
+ virtual bool HasExternalStencilTest() const OVERRIDE;
void set_surface_expansion_size(gfx::Size surface_expansion_size) {
surface_expansion_size_ = surface_expansion_size;
@@ -29,11 +28,15 @@ class PixelTestOutputSurface : public OutputSurface {
void set_device_clip(gfx::Rect device_clip) {
device_clip_ = device_clip;
}
+ void set_has_external_stencil_test(bool has_test) {
+ external_stencil_test_ = has_test;
+ }
private:
gfx::Size surface_expansion_size_;
gfx::Vector2d viewport_offset_;
gfx::Rect device_clip_;
+ bool external_stencil_test_;
};
} // namespace cc
« no previous file with comments | « cc/test/pixel_test.cc ('k') | cc/test/pixel_test_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698