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

Side by Side Diff: content/public/test/test_synchronous_compositor_android.cc

Issue 2036023002: Rewire Android WebView's compositor changed signal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use web_contents_ Created 4 years, 6 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 | « content/public/browser/android/synchronous_compositor_client.h ('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 "content/public/test/test_synchronous_compositor_android.h" 5 #include "content/public/test/test_synchronous_compositor_android.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "cc/output/compositor_frame.h" 9 #include "cc/output/compositor_frame.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 TestSynchronousCompositor::TestSynchronousCompositor() : client_(NULL) { 13 TestSynchronousCompositor::TestSynchronousCompositor() : client_(NULL) {
14 } 14 }
15 15
16 TestSynchronousCompositor::~TestSynchronousCompositor() { 16 TestSynchronousCompositor::~TestSynchronousCompositor() {
17 SetClient(NULL); 17 SetClient(NULL);
18 } 18 }
19 19
20 void TestSynchronousCompositor::SetClient(SynchronousCompositorClient* client) { 20 void TestSynchronousCompositor::SetClient(SynchronousCompositorClient* client) {
21 if (client_) 21 if (client_)
22 client_->DidDestroyCompositor(this); 22 client_->DidDestroyCompositor(this, 0, 0);
23 client_ = client; 23 client_ = client;
24 if (client_) { 24 if (client_) {
25 client_->DidInitializeCompositor(this); 25 client_->DidInitializeCompositor(this, 0, 0);
26 client_->DidBecomeCurrent(this);
27 } 26 }
28 } 27 }
29 28
30 SynchronousCompositor::Frame TestSynchronousCompositor::DemandDrawHw( 29 SynchronousCompositor::Frame TestSynchronousCompositor::DemandDrawHw(
31 const gfx::Size& surface_size, 30 const gfx::Size& surface_size,
32 const gfx::Transform& transform, 31 const gfx::Transform& transform,
33 const gfx::Rect& viewport, 32 const gfx::Rect& viewport,
34 const gfx::Rect& clip, 33 const gfx::Rect& clip,
35 const gfx::Rect& viewport_rect_for_tile_priority, 34 const gfx::Rect& viewport_rect_for_tile_priority,
36 const gfx::Transform& transform_for_tile_priority) { 35 const gfx::Transform& transform_for_tile_priority) {
(...skipping 28 matching lines...) Expand all
65 64
66 TestSynchronousCompositor::ReturnedResources::ReturnedResources() 65 TestSynchronousCompositor::ReturnedResources::ReturnedResources()
67 : output_surface_id(0u) {} 66 : output_surface_id(0u) {}
68 67
69 TestSynchronousCompositor::ReturnedResources::ReturnedResources( 68 TestSynchronousCompositor::ReturnedResources::ReturnedResources(
70 const ReturnedResources& other) = default; 69 const ReturnedResources& other) = default;
71 70
72 TestSynchronousCompositor::ReturnedResources::~ReturnedResources() {} 71 TestSynchronousCompositor::ReturnedResources::~ReturnedResources() {}
73 72
74 } // namespace content 73 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/android/synchronous_compositor_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698