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

Side by Side Diff: ui/compositor/test/in_process_context_factory.cc

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 | « services/ui/surfaces/display_output_surface.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/compositor/test/in_process_context_factory.h" 5 #include "ui/compositor/test/in_process_context_factory.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 return gl->GetCopyTextureInternalFormat(); 105 return gl->GetCopyTextureInternalFormat();
106 } 106 }
107 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override { 107 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override {
108 return nullptr; 108 return nullptr;
109 } 109 }
110 bool IsDisplayedAsOverlayPlane() const override { return false; } 110 bool IsDisplayedAsOverlayPlane() const override { return false; }
111 unsigned GetOverlayTextureId() const override { return 0; } 111 unsigned GetOverlayTextureId() const override { return 0; }
112 bool SurfaceIsSuspendForRecycle() const override { return false; } 112 bool SurfaceIsSuspendForRecycle() const override { return false; }
113 bool HasExternalStencilTest() const override { return false; } 113 bool HasExternalStencilTest() const override { return false; }
114 void ApplyExternalStencil() override {} 114 void ApplyExternalStencil() override {}
115 bool CanPartialDraw(const gfx::Rect& damage) override { return false; }
115 116
116 private: 117 private:
117 void OnSwapBuffersComplete() { client_->DidReceiveSwapBuffersAck(); } 118 void OnSwapBuffersComplete() { client_->DidReceiveSwapBuffersAck(); }
118 119
119 cc::OutputSurfaceClient* client_ = nullptr; 120 cc::OutputSurfaceClient* client_ = nullptr;
120 base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_; 121 base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_;
121 122
122 DISALLOW_COPY_AND_ASSIGN(DirectOutputSurface); 123 DISALLOW_COPY_AND_ASSIGN(DirectOutputSurface);
123 }; 124 };
124 125
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 data->surface_handle = tracker->AddSurfaceForNativeWidget(widget); 336 data->surface_handle = tracker->AddSurfaceForNativeWidget(widget);
336 #endif 337 #endif
337 } 338 }
338 339
339 PerCompositorData* return_ptr = data.get(); 340 PerCompositorData* return_ptr = data.get();
340 per_compositor_data_[compositor] = std::move(data); 341 per_compositor_data_[compositor] = std::move(data);
341 return return_ptr; 342 return return_ptr;
342 } 343 }
343 344
344 } // namespace ui 345 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/surfaces/display_output_surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698