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

Side by Side Diff: cc/test/test_web_graphics_context_3d.h

Issue 952893003: Update from https://crrev.com/317530 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix gn for nacl Created 5 years, 10 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 | « cc/test/render_pass_test_common.cc ('k') | cc/test/test_web_graphics_context_3d.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 5 #ifndef CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 void set_test_support(TestContextSupport* test_support) { 366 void set_test_support(TestContextSupport* test_support) {
367 test_support_ = test_support; 367 test_support_ = test_support;
368 } 368 }
369 369
370 int width() const { return width_; } 370 int width() const { return width_; }
371 int height() const { return height_; } 371 int height() const { return height_; }
372 bool reshape_called() const { return reshape_called_; } 372 bool reshape_called() const { return reshape_called_; }
373 void clear_reshape_called() { reshape_called_ = false; } 373 void clear_reshape_called() { reshape_called_ = false; }
374 float scale_factor() const { return scale_factor_; } 374 float scale_factor() const { return scale_factor_; }
375 375
376 enum UpdateType { 376 enum UpdateType { NO_UPDATE = 0, PREPARE_TEXTURE, POST_SUB_BUFFER };
377 NoUpdate = 0,
378 PrepareTexture,
379 PostSubBuffer
380 };
381 377
382 gfx::Rect update_rect() const { return update_rect_; } 378 gfx::Rect update_rect() const { return update_rect_; }
383 379
384 UpdateType last_update_type() { return last_update_type_; } 380 UpdateType last_update_type() { return last_update_type_; }
385 381
386 protected: 382 protected:
387 struct TextureTargets { 383 struct TextureTargets {
388 TextureTargets(); 384 TextureTargets();
389 ~TextureTargets(); 385 ~TextureTargets();
390 386
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 478
483 scoped_refptr<Namespace> namespace_; 479 scoped_refptr<Namespace> namespace_;
484 static Namespace* shared_namespace_; 480 static Namespace* shared_namespace_;
485 481
486 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 482 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
487 }; 483 };
488 484
489 } // namespace cc 485 } // namespace cc
490 486
491 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 487 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « cc/test/render_pass_test_common.cc ('k') | cc/test/test_web_graphics_context_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698