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

Side by Side Diff: android_webview/browser/parent_output_surface.cc

Issue 376683004: Pass resourceless software mode in BeginFrameArgs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tiny clean up Created 6 years, 5 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 | Annotate | Revision Log
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 "android_webview/browser/parent_output_surface.h" 5 #include "android_webview/browser/parent_output_surface.h"
6 6
7 #include "cc/output/output_surface_client.h" 7 #include "cc/output/output_surface_client.h"
8 #include "gpu/command_buffer/client/gles2_interface.h" 8 #include "gpu/command_buffer/client/gles2_interface.h"
9 9
10 namespace android_webview { 10 namespace android_webview {
(...skipping 11 matching lines...) Expand all
22 context_provider_->ContextGL()->ShallowFlushCHROMIUM(); 22 context_provider_->ContextGL()->ShallowFlushCHROMIUM();
23 client_->DidSwapBuffers(); 23 client_->DidSwapBuffers();
24 } 24 }
25 25
26 void ParentOutputSurface::SetDrawConstraints(const gfx::Size& surface_size, 26 void ParentOutputSurface::SetDrawConstraints(const gfx::Size& surface_size,
27 const gfx::Rect& clip) { 27 const gfx::Rect& clip) {
28 DCHECK(client_); 28 DCHECK(client_);
29 surface_size_ = surface_size; 29 surface_size_ = surface_size;
30 gfx::Transform identity; 30 gfx::Transform identity;
31 gfx::Rect empty; 31 gfx::Rect empty;
32 SetExternalDrawConstraints(identity, empty, clip, true); 32 SetExternalDrawConstraints(identity, empty, clip, false, true);
danakj 2014/07/09 17:21:07 nit: use a temp var to give the boolean literal a
boliu 2014/07/09 20:59:50 Done.
33 } 33 }
34 34
35 } // namespace android_webview 35 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl_unittest.cc » ('j') | cc/layers/picture_layer_impl_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698