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

Side by Side Diff: cc/test/fake_output_surface.h

Issue 2776923003: cc: Partial draw without partial swap support. (Closed)
Patch Set: avoid BufferQueue::RecreateBuffer changes Created 3 years, 8 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
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | cc/test/fake_output_surface.cc » ('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 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_TEST_FAKE_OUTPUT_SURFACE_H_ 5 #ifndef CC_TEST_FAKE_OUTPUT_SURFACE_H_
6 #define CC_TEST_FAKE_OUTPUT_SURFACE_H_ 6 #define CC_TEST_FAKE_OUTPUT_SURFACE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 bool has_alpha, 69 bool has_alpha,
70 bool use_stencil) override; 70 bool use_stencil) override;
71 void SwapBuffers(OutputSurfaceFrame frame) override; 71 void SwapBuffers(OutputSurfaceFrame frame) override;
72 uint32_t GetFramebufferCopyTextureFormat() override; 72 uint32_t GetFramebufferCopyTextureFormat() override;
73 bool HasExternalStencilTest() const override; 73 bool HasExternalStencilTest() const override;
74 void ApplyExternalStencil() override {} 74 void ApplyExternalStencil() override {}
75 bool SurfaceIsSuspendForRecycle() const override; 75 bool SurfaceIsSuspendForRecycle() const override;
76 OverlayCandidateValidator* GetOverlayCandidateValidator() const override; 76 OverlayCandidateValidator* GetOverlayCandidateValidator() const override;
77 bool IsDisplayedAsOverlayPlane() const override; 77 bool IsDisplayedAsOverlayPlane() const override;
78 unsigned GetOverlayTextureId() const override; 78 unsigned GetOverlayTextureId() const override;
79 bool CanPartialDraw(const gfx::Rect& damage) override;
79 80
80 void set_framebuffer(GLint framebuffer, GLenum format) { 81 void set_framebuffer(GLint framebuffer, GLenum format) {
81 framebuffer_ = framebuffer; 82 framebuffer_ = framebuffer;
82 framebuffer_format_ = format; 83 framebuffer_format_ = format;
83 } 84 }
84 85
85 void SetOverlayCandidateValidator(OverlayCandidateValidator* validator) { 86 void SetOverlayCandidateValidator(OverlayCandidateValidator* validator) {
86 overlay_candidate_validator_ = validator; 87 overlay_candidate_validator_ = validator;
87 } 88 }
88 89
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 121
121 private: 122 private:
122 void SwapBuffersAck(); 123 void SwapBuffersAck();
123 124
124 base::WeakPtrFactory<FakeOutputSurface> weak_ptr_factory_; 125 base::WeakPtrFactory<FakeOutputSurface> weak_ptr_factory_;
125 }; 126 };
126 127
127 } // namespace cc 128 } // namespace cc
128 129
129 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ 130 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | cc/test/fake_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698