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

Side by Side Diff: cc/gl_renderer_pixeltest.cc

Issue 12545018: Move context-related callbacks into OutputSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 9 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
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 #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 17 matching lines...) Expand all
28 28
29 // RendererClient methods. 29 // RendererClient methods.
30 virtual const gfx::Size& deviceViewportSize() const OVERRIDE { 30 virtual const gfx::Size& deviceViewportSize() const OVERRIDE {
31 static gfx::Size fake_size(200, 200); 31 static gfx::Size fake_size(200, 200);
32 return fake_size; 32 return fake_size;
33 } 33 }
34 virtual const LayerTreeSettings& settings() const OVERRIDE { 34 virtual const LayerTreeSettings& settings() const OVERRIDE {
35 static LayerTreeSettings fake_settings; 35 static LayerTreeSettings fake_settings;
36 return fake_settings; 36 return fake_settings;
37 } 37 }
38 virtual void didLoseOutputSurface() OVERRIDE { }
39 virtual void onSwapBuffersComplete() OVERRIDE { }
40 virtual void setFullRootLayerDamage() OVERRIDE { } 38 virtual void setFullRootLayerDamage() OVERRIDE { }
41 virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy&) OVERRIDE {} 39 virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy&) OVERRIDE {}
42 virtual void enforceManagedMemoryPolicy( 40 virtual void enforceManagedMemoryPolicy(
43 const ManagedMemoryPolicy&) OVERRIDE {} 41 const ManagedMemoryPolicy&) OVERRIDE {}
44 virtual bool hasImplThread() const OVERRIDE { return false; } 42 virtual bool hasImplThread() const OVERRIDE { return false; }
45 virtual bool shouldClearRootRenderPass() const OVERRIDE { return true; } 43 virtual bool shouldClearRootRenderPass() const OVERRIDE { return true; }
46 virtual CompositorFrameMetadata makeCompositorFrameMetadata() const 44 virtual CompositorFrameMetadata makeCompositorFrameMetadata() const
47 OVERRIDE { return CompositorFrameMetadata(); } 45 OVERRIDE { return CompositorFrameMetadata(); }
48 }; 46 };
49 47
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 renderer_->decideRenderPassAllocationsForFrame(pass_list); 192 renderer_->decideRenderPassAllocationsForFrame(pass_list);
195 renderer_->drawFrame(pass_list); 193 renderer_->drawFrame(pass_list);
196 194
197 EXPECT_TRUE(PixelsMatchReference( 195 EXPECT_TRUE(PixelsMatchReference(
198 base::FilePath(FILE_PATH_LITERAL("blue_yellow.png")), viewport_rect)); 196 base::FilePath(FILE_PATH_LITERAL("blue_yellow.png")), viewport_rect));
199 } 197 }
200 #endif 198 #endif
201 199
202 } // namespace 200 } // namespace
203 } // namespace cc 201 } // namespace cc
OLDNEW
« no previous file with comments | « cc/gl_renderer.cc ('k') | cc/gl_renderer_unittest.cc » ('j') | cc/output_surface.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698