OLD | NEW |
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 #include "cc/gl_renderer.h" | 5 #include "cc/gl_renderer.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "cc/compositor_frame_metadata.h" | 9 #include "cc/compositor_frame_metadata.h" |
10 #include "cc/draw_quad.h" | 10 #include "cc/draw_quad.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 } | 31 } |
32 | 32 |
33 // RendererClient methods. | 33 // RendererClient methods. |
34 virtual gfx::Size DeviceViewportSize() const OVERRIDE { | 34 virtual gfx::Size DeviceViewportSize() const OVERRIDE { |
35 return gfx::Size(kDeviceViewportWidth, kDeviceViewportHeight); | 35 return gfx::Size(kDeviceViewportWidth, kDeviceViewportHeight); |
36 } | 36 } |
37 virtual const LayerTreeSettings& Settings() const OVERRIDE { | 37 virtual const LayerTreeSettings& Settings() const OVERRIDE { |
38 static LayerTreeSettings fake_settings; | 38 static LayerTreeSettings fake_settings; |
39 return fake_settings; | 39 return fake_settings; |
40 } | 40 } |
41 virtual void DidLoseOutputSurface() OVERRIDE { } | |
42 virtual void OnSwapBuffersComplete() OVERRIDE { } | |
43 virtual void SetFullRootLayerDamage() OVERRIDE { } | 41 virtual void SetFullRootLayerDamage() OVERRIDE { } |
44 virtual void SetManagedMemoryPolicy(const ManagedMemoryPolicy&) OVERRIDE {} | 42 virtual void SetManagedMemoryPolicy(const ManagedMemoryPolicy&) OVERRIDE {} |
45 virtual void EnforceManagedMemoryPolicy( | 43 virtual void EnforceManagedMemoryPolicy( |
46 const ManagedMemoryPolicy&) OVERRIDE {} | 44 const ManagedMemoryPolicy&) OVERRIDE {} |
47 virtual bool HasImplThread() const OVERRIDE { return false; } | 45 virtual bool HasImplThread() const OVERRIDE { return false; } |
48 virtual bool ShouldClearRootRenderPass() const OVERRIDE { return true; } | 46 virtual bool ShouldClearRootRenderPass() const OVERRIDE { return true; } |
49 virtual CompositorFrameMetadata MakeCompositorFrameMetadata() const | 47 virtual CompositorFrameMetadata MakeCompositorFrameMetadata() const |
50 OVERRIDE { return CompositorFrameMetadata(); } | 48 OVERRIDE { return CompositorFrameMetadata(); } |
51 }; | 49 }; |
52 | 50 |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 filter_pass_content_rect_.Inset(12, 14, 16, 18); | 357 filter_pass_content_rect_.Inset(12, 14, 16, 18); |
360 | 358 |
361 DrawFrame(); | 359 DrawFrame(); |
362 EXPECT_TRUE(PixelsMatchReference( | 360 EXPECT_TRUE(PixelsMatchReference( |
363 base::FilePath(FILE_PATH_LITERAL("background_filter.png")))); | 361 base::FilePath(FILE_PATH_LITERAL("background_filter.png")))); |
364 } | 362 } |
365 #endif | 363 #endif |
366 | 364 |
367 } // namespace | 365 } // namespace |
368 } // namespace cc | 366 } // namespace cc |
OLD | NEW |