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

Side by Side Diff: content/browser/renderer_host/compositor_impl_android.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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "content/browser/renderer_host/compositor_impl_android.h" 5 #include "content/browser/renderer_host/compositor_impl_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 #include <android/native_window_jni.h> 8 #include <android/native_window_jni.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <unordered_set> 10 #include <unordered_set>
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 bool SurfaceIsSuspendForRecycle() const override { return false; } 279 bool SurfaceIsSuspendForRecycle() const override { return false; }
280 bool HasExternalStencilTest() const override { return false; } 280 bool HasExternalStencilTest() const override { return false; }
281 void ApplyExternalStencil() override {} 281 void ApplyExternalStencil() override {}
282 282
283 uint32_t GetFramebufferCopyTextureFormat() override { 283 uint32_t GetFramebufferCopyTextureFormat() override {
284 auto* gl = 284 auto* gl =
285 static_cast<ui::ContextProviderCommandBuffer*>(context_provider()); 285 static_cast<ui::ContextProviderCommandBuffer*>(context_provider());
286 return gl->GetCopyTextureInternalFormat(); 286 return gl->GetCopyTextureInternalFormat();
287 } 287 }
288 288
289 bool CanPartialDraw(const gfx::Rect& damage) override { return false; }
290
289 private: 291 private:
290 gpu::CommandBufferProxyImpl* GetCommandBufferProxy() { 292 gpu::CommandBufferProxyImpl* GetCommandBufferProxy() {
291 ui::ContextProviderCommandBuffer* provider_command_buffer = 293 ui::ContextProviderCommandBuffer* provider_command_buffer =
292 static_cast<ui::ContextProviderCommandBuffer*>(context_provider_.get()); 294 static_cast<ui::ContextProviderCommandBuffer*>(context_provider_.get());
293 gpu::CommandBufferProxyImpl* command_buffer_proxy = 295 gpu::CommandBufferProxyImpl* command_buffer_proxy =
294 provider_command_buffer->GetCommandBufferProxy(); 296 provider_command_buffer->GetCommandBufferProxy();
295 DCHECK(command_buffer_proxy); 297 DCHECK(command_buffer_proxy);
296 return command_buffer_proxy; 298 return command_buffer_proxy;
297 } 299 }
298 300
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 } 871 }
870 GetSurfaceManager()->UnregisterFrameSinkHierarchy(frame_sink_id_, 872 GetSurfaceManager()->UnregisterFrameSinkHierarchy(frame_sink_id_,
871 frame_sink_id); 873 frame_sink_id);
872 } 874 }
873 875
874 bool CompositorImpl::HavePendingReadbacks() { 876 bool CompositorImpl::HavePendingReadbacks() {
875 return !readback_layer_tree_->children().empty(); 877 return !readback_layer_tree_->children().empty();
876 } 878 }
877 879
878 } // namespace content 880 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698