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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp

Issue 2779633002: [cc] Remove remaining_frames from BeginFrameAck. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « services/ui/ws/window_tree_client_unittest.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "platform/graphics/OffscreenCanvasFrameDispatcherImpl.h" 5 #include "platform/graphics/OffscreenCanvasFrameDispatcherImpl.h"
6 6
7 #include "cc/output/compositor_frame.h" 7 #include "cc/output/compositor_frame.h"
8 #include "cc/quads/texture_draw_quad.h" 8 #include "cc/quads/texture_draw_quad.h"
9 #include "gpu/command_buffer/client/gles2_interface.h" 9 #include "gpu/command_buffer/client/gles2_interface.h"
10 #include "platform/CrossThreadFunctional.h" 10 #include "platform/CrossThreadFunctional.h"
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 m_sink->SetNeedsBeginFrame(needsBeginFrame); 400 m_sink->SetNeedsBeginFrame(needsBeginFrame);
401 } 401 }
402 } 402 }
403 403
404 void OffscreenCanvasFrameDispatcherImpl::OnBeginFrame( 404 void OffscreenCanvasFrameDispatcherImpl::OnBeginFrame(
405 const cc::BeginFrameArgs& beginFrameArgs) { 405 const cc::BeginFrameArgs& beginFrameArgs) {
406 DCHECK(client()); 406 DCHECK(client());
407 // TODO(eseckler): Set correct |latest_confirmed_sequence_number|. 407 // TODO(eseckler): Set correct |latest_confirmed_sequence_number|.
408 m_currentBeginFrameAck = cc::BeginFrameAck( 408 m_currentBeginFrameAck = cc::BeginFrameAck(
409 beginFrameArgs.source_id, beginFrameArgs.sequence_number, 409 beginFrameArgs.source_id, beginFrameArgs.sequence_number,
410 beginFrameArgs.sequence_number, 0, false); 410 beginFrameArgs.sequence_number, false);
411 client()->beginFrame(); 411 client()->beginFrame();
412 // TODO(eseckler): Tell |m_sink| if we did not draw during the BeginFrame. 412 // TODO(eseckler): Tell |m_sink| if we did not draw during the BeginFrame.
413 m_currentBeginFrameAck.sequence_number = 413 m_currentBeginFrameAck.sequence_number =
414 cc::BeginFrameArgs::kInvalidFrameNumber; 414 cc::BeginFrameArgs::kInvalidFrameNumber;
415 } 415 }
416 416
417 void OffscreenCanvasFrameDispatcherImpl::ReclaimResources( 417 void OffscreenCanvasFrameDispatcherImpl::ReclaimResources(
418 const cc::ReturnedResourceArray& resources) { 418 const cc::ReturnedResourceArray& resources) {
419 for (const auto& resource : resources) { 419 for (const auto& resource : resources) {
420 RefPtr<StaticBitmapImage> image = m_cachedImages.at(resource.id); 420 RefPtr<StaticBitmapImage> image = m_cachedImages.at(resource.id);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 469
470 void OffscreenCanvasFrameDispatcherImpl::reshape(int width, int height) { 470 void OffscreenCanvasFrameDispatcherImpl::reshape(int width, int height) {
471 if (m_width != width || m_height != height) { 471 if (m_width != width || m_height != height) {
472 m_width = width; 472 m_width = width;
473 m_height = height; 473 m_height = height;
474 m_changeSizeForNextCommit = true; 474 m_changeSizeForNextCommit = true;
475 } 475 }
476 } 476 }
477 477
478 } // namespace blink 478 } // namespace blink
OLDNEW
« no previous file with comments | « services/ui/ws/window_tree_client_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698