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

Side by Side Diff: cc/test/fake_output_surface_client.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/test/fake_output_surface.cc ('k') | cc/test/pixel_test.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ 5 #ifndef CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
6 #define CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ 6 #define CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
7 7
8 #include "cc/output/managed_memory_policy.h" 8 #include "cc/output/managed_memory_policy.h"
9 #include "cc/output/output_surface_client.h" 9 #include "cc/output/output_surface_client.h"
10 10
(...skipping 14 matching lines...) Expand all
25 virtual void ReleaseGL() OVERRIDE {} 25 virtual void ReleaseGL() OVERRIDE {}
26 virtual void SetNeedsRedrawRect(gfx::Rect damage_rect) OVERRIDE {} 26 virtual void SetNeedsRedrawRect(gfx::Rect damage_rect) OVERRIDE {}
27 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE; 27 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE;
28 virtual void OnSwapBuffersComplete(const CompositorFrameAck* ack) OVERRIDE {} 28 virtual void OnSwapBuffersComplete(const CompositorFrameAck* ack) OVERRIDE {}
29 virtual void DidLoseOutputSurface() OVERRIDE; 29 virtual void DidLoseOutputSurface() OVERRIDE;
30 virtual void SetExternalDrawConstraints( 30 virtual void SetExternalDrawConstraints(
31 const gfx::Transform& transform, 31 const gfx::Transform& transform,
32 gfx::Rect viewport, 32 gfx::Rect viewport,
33 gfx::Rect clip, 33 gfx::Rect clip,
34 bool valid_for_tile_management) OVERRIDE {} 34 bool valid_for_tile_management) OVERRIDE {}
35 virtual void SetExternalStencilTest(bool enable) OVERRIDE {}
36 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE; 35 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE;
37 virtual void SetDiscardBackBufferWhenNotVisible(bool discard) OVERRIDE; 36 virtual void SetDiscardBackBufferWhenNotVisible(bool discard) OVERRIDE;
38 virtual void SetTreeActivationCallback(const base::Closure&) OVERRIDE {} 37 virtual void SetTreeActivationCallback(const base::Closure&) OVERRIDE {}
39 38
40 int begin_frame_count() { 39 int begin_frame_count() {
41 return begin_frame_count_; 40 return begin_frame_count_;
42 } 41 }
43 42
44 void set_deferred_initialize_result(bool result) { 43 void set_deferred_initialize_result(bool result) {
45 deferred_initialize_result_ = result; 44 deferred_initialize_result_ = result;
(...skipping 18 matching lines...) Expand all
64 bool deferred_initialize_result_; 63 bool deferred_initialize_result_;
65 bool deferred_initialize_called_; 64 bool deferred_initialize_called_;
66 bool did_lose_output_surface_called_; 65 bool did_lose_output_surface_called_;
67 ManagedMemoryPolicy memory_policy_; 66 ManagedMemoryPolicy memory_policy_;
68 bool discard_backbuffer_when_not_visible_; 67 bool discard_backbuffer_when_not_visible_;
69 }; 68 };
70 69
71 } // namespace cc 70 } // namespace cc
72 71
73 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ 72 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/test/fake_output_surface.cc ('k') | cc/test/pixel_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698