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

Side by Side Diff: content/browser/renderer_host/delegated_frame_host.cc

Issue 2544893006: Revert of Reland "Fix HTML5 video blurry" (Closed)
Patch Set: Created 4 years 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 | « components/test_runner/test_plugin.cc ('k') | content/test/gpu/gpu_tests/pixel_expectations.py » ('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 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 "content/browser/renderer_host/delegated_frame_host.h" 5 #include "content/browser/renderer_host/delegated_frame_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 // Setting the source in this copy request asks that the layer abort any prior 379 // Setting the source in this copy request asks that the layer abort any prior
380 // uncommitted copy requests made on behalf of the same frame subscriber. 380 // uncommitted copy requests made on behalf of the same frame subscriber.
381 // This will not affect any of the copy requests spawned elsewhere from 381 // This will not affect any of the copy requests spawned elsewhere from
382 // DelegatedFrameHost (e.g., a call to CopyFromCompositingSurface() for 382 // DelegatedFrameHost (e.g., a call to CopyFromCompositingSurface() for
383 // screenshots) since those copy requests do not specify |frame_subscriber()| 383 // screenshots) since those copy requests do not specify |frame_subscriber()|
384 // as a source. 384 // as a source.
385 request->set_source(frame_subscriber()); 385 request->set_source(frame_subscriber());
386 if (subscriber_texture.get()) { 386 if (subscriber_texture.get()) {
387 request->SetTextureMailbox(cc::TextureMailbox( 387 request->SetTextureMailbox(cc::TextureMailbox(
388 subscriber_texture->mailbox(), subscriber_texture->sync_token(), 388 subscriber_texture->mailbox(), subscriber_texture->sync_token(),
389 subscriber_texture->target(), current_frame_size_in_dip_, false, 389 subscriber_texture->target()));
390 false));
391 } 390 }
392 391
393 if (local_frame_id_.is_valid()) { 392 if (local_frame_id_.is_valid()) {
394 // To avoid unnecessary composites, go directly to the Surface rather than 393 // To avoid unnecessary composites, go directly to the Surface rather than
395 // through RequestCopyOfOutput (which goes through the browser 394 // through RequestCopyOfOutput (which goes through the browser
396 // compositor). 395 // compositor).
397 if (!request_copy_of_output_callback_for_testing_.is_null()) 396 if (!request_copy_of_output_callback_for_testing_.is_null())
398 request_copy_of_output_callback_for_testing_.Run(std::move(request)); 397 request_copy_of_output_callback_for_testing_.Run(std::move(request));
399 else 398 else
400 surface_factory_->RequestCopyOfSurface(std::move(request)); 399 surface_factory_->RequestCopyOfSurface(std::move(request));
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 std::move(request)); 881 std::move(request));
883 } 882 }
884 } 883 }
885 884
886 void DelegatedFrameHost::UnlockResources() { 885 void DelegatedFrameHost::UnlockResources() {
887 DCHECK(local_frame_id_.is_valid()); 886 DCHECK(local_frame_id_.is_valid());
888 delegated_frame_evictor_->UnlockFrame(); 887 delegated_frame_evictor_->UnlockFrame();
889 } 888 }
890 889
891 } // namespace content 890 } // namespace content
OLDNEW
« no previous file with comments | « components/test_runner/test_plugin.cc ('k') | content/test/gpu/gpu_tests/pixel_expectations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698